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

Unified Diff: ios/chrome/browser/google/google_logo_service.mm

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.cc ('k') | ios/chrome/browser/ui/browser_view_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/google/google_logo_service.mm
diff --git a/ios/chrome/browser/google/google_logo_service.mm b/ios/chrome/browser/google/google_logo_service.mm
index b646df95c36f52f80429a34ea6b3742c59b14e08..c4cf895362dadea456231ba24ae29c45a2bbbd44 100644
--- a/ios/chrome/browser/google/google_logo_service.mm
+++ b/ios/chrome/browser/google/google_logo_service.mm
@@ -92,7 +92,8 @@ void GoogleLogoService::GetLogo(search_provider_logos::LogoObserver* observer) {
if (!template_url_service)
return;
- TemplateURL* template_url = template_url_service->GetDefaultSearchProvider();
+ const TemplateURL* template_url =
+ template_url_service->GetDefaultSearchProvider();
if (!template_url ||
!template_url->url_ref().HasGoogleBaseURLs(
template_url_service->search_terms_data()))
« no previous file with comments | « components/search_engines/template_url_service.cc ('k') | ios/chrome/browser/ui/browser_view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698