Chromium Code Reviews| 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); |