Chromium Code Reviews| Index: chrome/browser/prefs/pref_metrics_service.h |
| diff --git a/chrome/browser/prefs/pref_metrics_service.h b/chrome/browser/prefs/pref_metrics_service.h |
| index 7627e48b4d2f1f8418afe2f7868fd46a7d6860b4..c2910e59fdf6bcab820b73e656b6e03e9a0ddc41 100644 |
| --- a/chrome/browser/prefs/pref_metrics_service.h |
| +++ b/chrome/browser/prefs/pref_metrics_service.h |
| @@ -25,6 +25,18 @@ class PrefMetricsService : public KeyedService { |
| explicit PrefMetricsService(Profile* profile); |
| ~PrefMetricsService() override; |
| + // Records metrics about the state of the homepage on launch. On all |
| + // platforms except Android this will be triggered automatically as part of |
| + // initializing the PrefMetricsService. |
| + // |
| + // On Android, determining whether the homepage is enabled requires waiting |
| + // for a response from a third party provider installed on the device. Thus, |
| + // this functionality is exposed to allow it to be called once all the |
|
Mark P
2016/05/24 19:07:17
nit: extra space
Ted C
2016/05/24 19:55:53
Done.
|
| + // necessary information is available. |
| + static void RecordHomePageLaunchMetrics(bool show_home_button, |
| + bool homepage_is_ntp, |
| + const GURL& homepage_url); |
| + |
| class Factory : public BrowserContextKeyedServiceFactory { |
| public: |
| static Factory* GetInstance(); |