| Index: chrome/browser/prefs/pref_metrics_service.cc
|
| diff --git a/chrome/browser/prefs/pref_metrics_service.cc b/chrome/browser/prefs/pref_metrics_service.cc
|
| index ed1d5380e5849a2e828a2951ac73b4e25d494df8..1d683caeef0fb51f99691839ddbf69dd3e5af159 100644
|
| --- a/chrome/browser/prefs/pref_metrics_service.cc
|
| +++ b/chrome/browser/prefs/pref_metrics_service.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "base/metrics/histogram.h"
|
| #include "base/prefs/pref_service.h"
|
| +#include "chrome/browser/prefs/session_startup_pref.h"
|
| #include "chrome/browser/profiles/incognito_helpers.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/common/pref_names.h"
|
| @@ -24,6 +25,17 @@ void PrefMetricsService::RecordLaunchPrefs() {
|
| profile_->GetPrefs()->GetBoolean(prefs::kShowHomeButton));
|
| UMA_HISTOGRAM_BOOLEAN("Settings.HomePageIsNewTabPage",
|
| profile_->GetPrefs()->GetBoolean(prefs::kHomePageIsNewTabPage));
|
| +
|
| + int restore_on_startup = profile_->GetPrefs()->GetInteger(
|
| + prefs::kRestoreOnStartup);
|
| + UMA_HISTOGRAM_ENUMERATION("Settings.StartupPageLoadSettings",
|
| + restore_on_startup, SessionStartupPref::kPrefValueMax);
|
| + if (restore_on_startup == SessionStartupPref::kPrefValueURLs) {
|
| + const int url_list_size = profile_->GetPrefs()->GetList(
|
| + prefs::kURLsToRestoreOnStartup)->GetSize();
|
| + UMA_HISTOGRAM_CUSTOM_COUNTS(
|
| + "Settings.StartupPageLoadURLs", url_list_size, 1, 50, 20);
|
| + }
|
| }
|
|
|
| // static
|
|
|