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

Unified Diff: components/search_engines/template_url_service.cc

Issue 2816383002: Remove non-const version of GetDefaultSearchProvider() and make all callers call the const version (Closed)
Patch Set: Fix unit test (the model was already loaded) 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
« no previous file with comments | « components/search_engines/template_url_service.h ('k') | ios/chrome/browser/google/google_logo_service.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/search_engines/template_url_service.cc
diff --git a/components/search_engines/template_url_service.cc b/components/search_engines/template_url_service.cc
index dfce55d0938808463ee41f3312197384c0f83c05..9433205bea41da61a676ca39c2822d552e7ae555 100644
--- a/components/search_engines/template_url_service.cc
+++ b/components/search_engines/template_url_service.cc
@@ -614,11 +614,6 @@ void TemplateURLService::SetUserSelectedDefaultSearchProvider(
}
}
-TemplateURL* TemplateURLService::GetDefaultSearchProvider() {
- return const_cast<TemplateURL*>(
- static_cast<const TemplateURLService*>(this)->GetDefaultSearchProvider());
-}
-
const TemplateURL* TemplateURLService::GetDefaultSearchProvider() const {
return loaded_ ? default_search_provider_
: initial_default_search_provider_.get();
« no previous file with comments | « components/search_engines/template_url_service.h ('k') | ios/chrome/browser/google/google_logo_service.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698