summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/autocomplete.cc
diff options
context:
space:
mode:
authorsreeram@chromium.org <sreeram@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-09 20:40:08 +0000
committersreeram@chromium.org <sreeram@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-09 20:40:08 +0000
commitd6773feb98254f837edcad81ad122959322fcb1b (patch)
tree6eba6d3030be837903ad3292a9b55c39dad99f6d /chrome/browser/autocomplete/autocomplete.cc
parent6c2999b35364b8882f8b9d10275ce46caa7d3a7c (diff)
downloadchromium_src-d6773feb98254f837edcad81ad122959322fcb1b.zip
chromium_src-d6773feb98254f837edcad81ad122959322fcb1b.tar.gz
chromium_src-d6773feb98254f837edcad81ad122959322fcb1b.tar.bz2
Restrict Instant field trial to UMA opt-in users.
Note that if the Instant experiment has already been enabled, and *then* the user opts out of UMA, this won't disable the experiment immediately (since the global field trial state doesn't change). Instead, it will be disabled at browser restart. I think this is acceptable since, if the user is fiddling with preferences after Instant has been enabled, they can already click the Instant checkbox to turn it off. In addition: + Fix a typo in the "Omnibox.QueryTime.*" histogram. + Update the comment in the .h file so it flows better. BUG=91820 TEST=Disable UMA reporting (as is default in a Chromium build), and verify that the Instant experiment doesn't get enabled. Review URL: http://codereview.chromium.org/7583012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96057 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete.cc')
-rw-r--r--chrome/browser/autocomplete/autocomplete.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/autocomplete/autocomplete.cc b/chrome/browser/autocomplete/autocomplete.cc
index b56c1bf..d728924 100644
--- a/chrome/browser/autocomplete/autocomplete.cc
+++ b/chrome/browser/autocomplete/autocomplete.cc
@@ -869,7 +869,7 @@ void AutocompleteController::Start(
(text.length() < 6)) {
base::TimeTicks end_time = base::TimeTicks::Now();
std::string name = "Omnibox.QueryTime." +
- InstantFieldTrial::GetGroupName(profile_) +
+ InstantFieldTrial::GetGroupName(profile_) + "." +
base::IntToString(text.length());
base::Histogram* counter = base::Histogram::FactoryGet(
name, 1, 1000, 50, base::Histogram::kUmaTargetedHistogramFlag);