Index: chrome/browser/instant/search.cc |
=================================================================== |
--- chrome/browser/instant/search.cc (revision 187626) |
+++ chrome/browser/instant/search.cc (working copy) |
@@ -338,7 +338,18 @@ |
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) { |
+ static bool recorded = false; |
sreeram
2013/03/14 18:22:44
Nit: Please add a comment about 'recorded' not bei
Alexei Svitkine (slow)
2013/03/14 18:33:12
Done.
|
+ if (!recorded) { |
+ UMA_HISTOGRAM_BOOLEAN("InstantExtended.PrefValue", pref_value); |
+ recorded = true; |
+ } |
+ } |
+ |
+ return pref_value; |
} |
void SetInstantExtendedPrefDefault(Profile* profile) { |