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

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, 9 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 17f74aac9e49d835f0c294d2855911565380e5ce..05002d57230fd3c03c44dd6d186d23842d07b642 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright 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.
@@ -1130,8 +1130,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())
+ command_line->AppendSwitch(switches::kEnableInstantExtendedAPI);
+ }
SigninManager* signin_manager =
SigninManagerFactory::GetForProfile(profile);
« no previous file with comments | « no previous file | chrome/browser/history/history_tab_helper.cc » ('j') | chrome/browser/instant/instant_controller.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698