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

Unified Diff: ios/chrome/browser/ui/ntp/google_landing_controller.mm

Issue 2816383002: Remove non-const version of GetDefaultSearchProvider() and make all callers call the const version (Closed)
Patch Set: Fix instant extended interactive ui test for calling the const version of GetDefaultSearchProvider() 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_controller.mm
diff --git a/ios/chrome/browser/ui/ntp/google_landing_controller.mm b/ios/chrome/browser/ui/ntp/google_landing_controller.mm
index fc420ea1507c0d44617bd60e83fbed3fa25f2e00..6a7e3c17bdc2b9596d9ae9f6509a4f14069c7708 100644
--- a/ios/chrome/browser/ui/ntp/google_landing_controller.mm
+++ b/ios/chrome/browser/ui/ntp/google_landing_controller.mm
@@ -592,7 +592,8 @@ void SearchEngineObserver::OnTemplateURLServiceChanged() {
- (void)updateLogoAndFakeboxDisplay {
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