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

Unified Diff: chrome/browser/search_engines/template_url_service.h

Issue 340553005: Stop depending on TemplateURLService from DefaultSearchManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/search_engines/template_url_service.h
diff --git a/chrome/browser/search_engines/template_url_service.h b/chrome/browser/search_engines/template_url_service.h
index 1712fa0a6bd3e8690f3cefbf429c560fb6bdd0c2..8343463aba27021d9875df9f2aa73ee707ae4609 100644
--- a/chrome/browser/search_engines/template_url_service.h
+++ b/chrome/browser/search_engines/template_url_service.h
@@ -397,18 +397,7 @@ class TemplateURLService : public WebDataServiceConsumer,
static SyncDataMap CreateGUIDToSyncDataMap(
const syncer::SyncDataList& sync_data);
- // Indicates whether the pre-populated TemplateURLs should be disabled. May
- // only be true in tests.
- static bool fallback_search_engines_disabled() {
- return g_fallback_search_engines_disabled;
- }
-
#if defined(UNIT_TEST)
- // Disables the pre-populated TemplateURLs for testing purposes.
- static void set_fallback_search_engines_disabled(bool disabled) {
- g_fallback_search_engines_disabled = disabled;
- }
-
// Sets a different time provider function, such as
// base::MockTimeProvider::StaticNow, for testing calls to base::Time::Now.
void set_time_provider(TimeProvider* time_provider) {
@@ -795,9 +784,6 @@ class TemplateURLService : public WebDataServiceConsumer,
scoped_ptr<GoogleURLTracker::Subscription> google_url_updated_subscription_;
- // Used to disable the prepopulated search engines in tests.
- static bool g_fallback_search_engines_disabled;
-
DISALLOW_COPY_AND_ASSIGN(TemplateURLService);
};

Powered by Google App Engine
This is Rietveld 408576698