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

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

Issue 263823007: Handle TemplateURLService load failure better (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 172932304bac18700e878f52f7271b96987fd0cd..60270f9235e7a1b0eae04ca9e0dd956c70495eb8 100644
--- a/chrome/browser/search_engines/template_url_service.h
+++ b/chrome/browser/search_engines/template_url_service.h
@@ -476,6 +476,13 @@ class TemplateURLService : public WebDataServiceConsumer,
// Transitions to the loaded state.
void ChangeToLoadedState();
+ // Copies |initial_default_search_provider_| in as the actual default search
+ // provider and finishes the transition to the loading state. This is called
+ // in test code, or when some kind of corruption prevents the WebDataService
+ // from loading, so the TemplateURLService doesn't suddenly begin reporting
+ // "no DSP" once it attempts to load.
+ void OnFailedLoad();
+
// Clears user preferences describing the default search engine.
void ClearDefaultProviderFromPrefs();

Powered by Google App Engine
This is Rietveld 408576698