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

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 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
« no previous file with comments | « components/search_engines/template_url_service.cc ('k') | no next file » | 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..746bd2b2493fb3d3cf915a353658eb4cd7297fd6 100644
--- a/ios/chrome/browser/google/google_logo_service.mm
+++ b/ios/chrome/browser/google/google_logo_service.mm
@@ -92,7 +92,7 @@ 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();
Peter Kasting 2017/04/17 18:56:59 Nit: 80 columns; git cl format can find this sort
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') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698