A measurement of the mass of the Higgs boson in the diphoton decay channel is presented. This analysis is based on 35.9 fb of proton-proton collision data collected in 2016 with the CMS detector at a center-of-mass energy of 13 TeV. The Higgs boson mass is measured to be = 125.78 0.26 GeV. This is combined with a measurement of already performed in the H ZZ decay channel using the same dataset, giving = 125.46 0.17 GeV. This result, when combined with an earlier measurement of the Higgs boson mass using data collected in 2011 and 2012 with the CMS detector, gives a value for the Higgs boson mass of = 125.35 0.15 GeV. In this note we summarize the strategy of this measurement in the H final state emphasizing the methods employed to mitigate and to quantify the main sources of systematic uncertainty. The combination strategy is also described.