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

Unified Diff: components/search_engines/template_url_service.h

Issue 2816383002: Remove non-const version of GetDefaultSearchProvider() and make all callers call the const version (Closed)
Patch Set: Fix compiler error for iOS build by calling the const version of TemplateURLService::GetDefaultSear… Created 3 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: components/search_engines/template_url_service.h
diff --git a/components/search_engines/template_url_service.h b/components/search_engines/template_url_service.h
index 4187327f06a21b14b590b8a7e0b5a6d5b9c30147..0c8d499bdb489c513b4712f6404c30bc19df37e9 100644
--- a/components/search_engines/template_url_service.h
+++ b/components/search_engines/template_url_service.h
@@ -259,9 +259,6 @@ class TemplateURLService : public WebDataServiceConsumer,
// loaded, the default search provider is pulled from preferences.
//
// NOTE: At least in unittest mode, this may return NULL.
- // TODO(blundell): See if all callers can be converted to take in const
- // pointers and eliminate this version of the method.
- TemplateURL* GetDefaultSearchProvider();
const TemplateURL* GetDefaultSearchProvider() const;
// Returns true if the |url| is a search results page from the default search

Powered by Google App Engine
This is Rietveld 408576698