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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 12386019: Instant: Use only one hidden WebContents per profile. (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
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 9677f919fc9dce37e08db35a626aebaf185f6ed4..7cc342443c467b6df30ec203974edab5193e2aa6 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -1109,8 +1109,11 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
InstantService* instant_service =
InstantServiceFactory::GetForProfile(profile);
if (instant_service &&
- instant_service->IsInstantProcess(process->GetID()))
+ instant_service->IsInstantProcess(process->GetID())) {
command_line->AppendSwitch(switches::kInstantProcess);
+ if (chrome::search::IsInstantExtendedAPIEnabled(profile))
+ command_line->AppendSwitch(switches::kEnableInstantExtendedAPI);
+ }
}
if (content::IsThreadedCompositingEnabled())

Powered by Google App Engine
This is Rietveld 408576698