Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Unified Diff: chrome/browser/instant/search.cc

Issue 12378025: Record InstantExtended pref setting on startup with an UMA histogram. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/instant/search.cc
===================================================================
--- chrome/browser/instant/search.cc (revision 187626)
+++ chrome/browser/instant/search.cc (working copy)
@@ -338,7 +338,20 @@
if (!prefs)
return false;
- return prefs->GetBoolean(GetInstantPrefName());
+ const char* pref_name = GetInstantPrefName();
+ const bool pref_value = prefs->GetBoolean(pref_name);
+
+ if (pref_name == prefs::kInstantExtendedEnabled) {
+ // Note that this is only recorded for the first profile that calls this
+ // code (which happens on startup).
+ static bool recorded = false;
+ if (!recorded) {
+ UMA_HISTOGRAM_BOOLEAN("InstantExtended.PrefValue", pref_value);
+ recorded = true;
+ }
+ }
+
+ return pref_value;
}
void SetInstantExtendedPrefDefault(Profile* profile) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698