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

Unified Diff: chrome/browser/ui/search/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, 10 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 | « chrome/browser/ui/search/search.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search/search.cc
===================================================================
--- chrome/browser/ui/search/search.cc (revision 185538)
+++ chrome/browser/ui/search/search.cc (working copy)
@@ -279,6 +279,14 @@
template_url);
}
+void RecordInstantExtendedPrefValue(bool pref_value) {
+ static bool recorded = false;
sreeram 2013/03/01 16:42:07 This bool is static across the whole browser proce
Alexei Svitkine (slow) 2013/03/01 17:57:56 I agree that's kind of weird. From the bug: "It's
+ if (!recorded) {
+ UMA_HISTOGRAM_BOOLEAN("InstantExtended.PrefValue", pref_value);
+ recorded = true;
+ }
+}
+
void EnableInstantExtendedAPIForTesting() {
CommandLine* cl = CommandLine::ForCurrentProcess();
cl->AppendSwitch(switches::kEnableInstantExtendedAPI);
« no previous file with comments | « chrome/browser/ui/search/search.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698