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..cc4d98dae9a05cc82165244ae23a425a4ed8f7be 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 |
+ // necessary information is available. |
gab
2016/05/25 14:03:24
This comment should state what this method does, n
Mark P
2016/05/25 17:01:53
I agree with gab@ on this one; you can move everyt
Ted C
2016/05/25 18:13:07
I personally think the comment about this being tr
gab
2016/05/25 18:23:40
If you want to mention where it's triggered, that
Ted C
2016/05/25 18:28:31
I can't say I agree, but I'll just remove it entir
|
+ static void RecordHomePageLaunchMetrics(bool show_home_button, |
+ bool homepage_is_ntp, |
+ const GURL& homepage_url); |
+ |
class Factory : public BrowserContextKeyedServiceFactory { |
public: |
static Factory* GetInstance(); |