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(); |