summaryrefslogtreecommitdiffstats
path: root/chrome/browser/instant/instant_controller.cc
diff options
context:
space:
mode:
authorsreeram@chromium.org <sreeram@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-05 01:07:00 +0000
committersreeram@chromium.org <sreeram@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-05 01:07:00 +0000
commitf0dc7523928056942b46bd45a6a9bbe83900bbdb (patch)
treeb103421be998b26f1d3c367b84da6b74b02ddc69 /chrome/browser/instant/instant_controller.cc
parenta24d9005a37c862e31aef15da691c9bcc582a560 (diff)
downloadchromium_src-f0dc7523928056942b46bd45a6a9bbe83900bbdb.zip
chromium_src-f0dc7523928056942b46bd45a6a9bbe83900bbdb.tar.gz
chromium_src-f0dc7523928056942b46bd45a6a9bbe83900bbdb.tar.bz2
Add field trial info to Instant histograms.
BUG=109197 TEST=none Review URL: http://codereview.chromium.org/9085015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116427 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/instant/instant_controller.cc')
-rw-r--r--chrome/browser/instant/instant_controller.cc14
1 files changed, 9 insertions, 5 deletions
diff --git a/chrome/browser/instant/instant_controller.cc b/chrome/browser/instant/instant_controller.cc
index 6bcbd54..63d67ea 100644
--- a/chrome/browser/instant/instant_controller.cc
+++ b/chrome/browser/instant/instant_controller.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -169,8 +169,10 @@ bool InstantController::Update(TabContentsWrapper* tab_contents,
const TemplateURL* template_url = match.template_url;
DCHECK(template_url); // ShouldUseInstant returns false if no turl.
- if (!loader_.get())
- loader_.reset(new InstantLoader(this, template_url->id()));
+ if (!loader_.get()) {
+ loader_.reset(new InstantLoader(this, template_url->id(),
+ InstantFieldTrial::GetGroupName(tab_contents->profile())));
+ }
// In some rare cases (involving group policy), Instant can go from the field
// trial to normal mode, with no intervening call to DestroyPreviewContents().
@@ -388,8 +390,10 @@ void InstantController::OnAutocompleteGotFocus(
tab_contents_ = tab_contents;
- if (!loader_.get())
- loader_.reset(new InstantLoader(this, template_url->id()));
+ if (!loader_.get()) {
+ loader_.reset(new InstantLoader(this, template_url->id(),
+ InstantFieldTrial::GetGroupName(tab_contents->profile())));
+ }
loader_->MaybeLoadInstantURL(tab_contents, template_url);
}