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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 1260033003: Partially componentize //chrome/browser/search/search.{h,cc} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation on iOS Created 5 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
« no previous file with comments | « chrome/browser/android/tab_android.cc ('k') | chrome/browser/extensions/api/sessions/sessions_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 110221b46c33dd020998977b04336a9d20f34f2f..1e4392e3f943535bc79a97015283acdd12ce6494 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -901,8 +901,8 @@ GURL ChromeContentBrowserClient::GetEffectiveURL(
// If the input |url| should be assigned to the Instant renderer, make its
// effective URL distinct from other URLs on the search provider's domain.
- if (chrome::ShouldAssignURLToInstantRenderer(url, profile))
- return chrome::GetEffectiveURLForInstant(url, profile);
+ if (search::ShouldAssignURLToInstantRenderer(url, profile))
+ return search::GetEffectiveURLForInstant(url, profile);
#if defined(ENABLE_EXTENSIONS)
return ChromeContentBrowserClientExtensionsPart::GetEffectiveURL(
@@ -923,7 +923,7 @@ bool ChromeContentBrowserClient::ShouldUseProcessPerSite(
if (!profile)
return false;
- if (chrome::ShouldUseProcessPerSiteForInstantURL(effective_url, profile))
+ if (search::ShouldUseProcessPerSiteForInstantURL(effective_url, profile))
return true;
#if defined(ENABLE_EXTENSIONS)
@@ -1034,7 +1034,7 @@ bool ChromeContentBrowserClient::IsSuitableHost(
bool is_instant_process = instant_service->IsInstantProcess(
process_host->GetID());
bool should_be_in_instant_process =
- chrome::ShouldAssignURLToInstantRenderer(site_url, profile);
+ search::ShouldAssignURLToInstantRenderer(site_url, profile);
if (is_instant_process || should_be_in_instant_process)
return is_instant_process && should_be_in_instant_process;
}
@@ -1091,8 +1091,8 @@ void ChromeContentBrowserClient::SiteInstanceGotProcess(
// Remember the ID of the Instant process to signal the renderer process
// on startup in |AppendExtraCommandLineSwitches| below.
- if (chrome::ShouldAssignURLToInstantRenderer(
- site_instance->GetSiteURL(), profile)) {
+ if (search::ShouldAssignURLToInstantRenderer(site_instance->GetSiteURL(),
+ profile)) {
InstantService* instant_service =
InstantServiceFactory::GetForProfile(profile);
if (instant_service)
@@ -2179,8 +2179,8 @@ void ChromeContentBrowserClient::BrowserURLHandlerCreated(
BrowserURLHandler::null_handler());
#else
// Handler to rewrite chrome://newtab for InstantExtended.
- handler->AddHandlerPair(&chrome::HandleNewTabURLRewrite,
- &chrome::HandleNewTabURLReverseRewrite);
+ handler->AddHandlerPair(&search::HandleNewTabURLRewrite,
+ &search::HandleNewTabURLReverseRewrite);
#endif
// chrome: & friends.
« no previous file with comments | « chrome/browser/android/tab_android.cc ('k') | chrome/browser/extensions/api/sessions/sessions_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698