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

Unified Diff: ios/chrome/browser/ui/ntp/google_landing_mediator.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
Index: ios/chrome/browser/ui/ntp/google_landing_mediator.mm
diff --git a/ios/chrome/browser/ui/ntp/google_landing_mediator.mm b/ios/chrome/browser/ui/ntp/google_landing_mediator.mm
index 1014342bbe35d77393c40f821de8ef7d37025e3a..aa41b9e7bfafef59c3f4c000208fcf1e51197983 100644
--- a/ios/chrome/browser/ui/ntp/google_landing_mediator.mm
+++ b/ios/chrome/browser/ui/ntp/google_landing_mediator.mm
@@ -208,7 +208,8 @@ void SearchEngineObserver::OnTemplateURLServiceChanged() {
- (void)updateShowLogo {
BOOL showLogo = NO;
- TemplateURL* defaultURL = _templateURLService->GetDefaultSearchProvider();
+ const TemplateURL* defaultURL =
+ _templateURLService->GetDefaultSearchProvider();
if (defaultURL) {
showLogo =
defaultURL->GetEngineType(_templateURLService->search_terms_data()) ==

Powered by Google App Engine
This is Rietveld 408576698