Index: chrome/browser/prefs/pref_metrics_service.cc |
=================================================================== |
--- chrome/browser/prefs/pref_metrics_service.cc (revision 214491) |
+++ chrome/browser/prefs/pref_metrics_service.cc (working copy) |
@@ -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 @@ |
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 |