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

Unified Diff: chrome/browser/search/instant_service_factory.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/search/instant_service.cc ('k') | chrome/browser/search/instant_unittest_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/instant_service_factory.cc
diff --git a/chrome/browser/search/instant_service_factory.cc b/chrome/browser/search/instant_service_factory.cc
index e20d92eb9b0ec64e0e9ae19c16931bfa283439d5..fc2160b700a75eed7c575f89094416a4689344e2 100644
--- a/chrome/browser/search/instant_service_factory.cc
+++ b/chrome/browser/search/instant_service_factory.cc
@@ -15,7 +15,7 @@
// static
InstantService* InstantServiceFactory::GetForProfile(Profile* profile) {
- if (!chrome::IsInstantExtendedAPIEnabled())
+ if (!search::IsInstantExtendedAPIEnabled())
return NULL;
return static_cast<InstantService*>(
@@ -48,6 +48,7 @@ content::BrowserContext* InstantServiceFactory::GetBrowserContextToUse(
KeyedService* InstantServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
- return chrome::IsInstantExtendedAPIEnabled() ?
- new InstantService(static_cast<Profile*>(profile)) : NULL;
+ return search::IsInstantExtendedAPIEnabled()
+ ? new InstantService(static_cast<Profile*>(profile))
+ : NULL;
}
« no previous file with comments | « chrome/browser/search/instant_service.cc ('k') | chrome/browser/search/instant_unittest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698