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

Unified Diff: chrome/browser/instant/instant_loader.cc

Issue 7558014: Add a URL param to indicate group selection in Instant field trial. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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
Index: chrome/browser/instant/instant_loader.cc
diff --git a/chrome/browser/instant/instant_loader.cc b/chrome/browser/instant/instant_loader.cc
index fc348413487707e9b5b3526bbcf7ef897a991242..93df1bdf5001e426426e6f934e7c71fa23ad2ef7 100644
--- a/chrome/browser/instant/instant_loader.cc
+++ b/chrome/browser/instant/instant_loader.cc
@@ -1021,7 +1021,7 @@ void InstantLoader::LoadInstantURL(TabContentsWrapper* tab_contents,
// correctly.
// TODO(sky): having to use a replaceable url is a bit of a hack here.
GURL instant_url(template_url->instant_url()->ReplaceSearchTerms(
- *template_url, string16(), -1, string16()));
+ tab_contents->profile(), *template_url, string16(), -1, string16()));
CommandLine* cl = CommandLine::ForCurrentProcess();
if (cl->HasSwitch(switches::kInstantURL))
instant_url = GURL(cl->GetSwitchValueASCII(switches::kInstantURL));

Powered by Google App Engine
This is Rietveld 408576698