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

Unified Diff: ios/chrome/browser/ui/ntp/new_tab_page_controller.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 | « ios/chrome/browser/ui/ntp/google_landing_mediator.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/ntp/new_tab_page_controller.mm
diff --git a/ios/chrome/browser/ui/ntp/new_tab_page_controller.mm b/ios/chrome/browser/ui/ntp/new_tab_page_controller.mm
index 33f546cdde890d5c003755c7ec6cef96aeae43a5..e7a917920627f708e554bc7af92d3ef66b8f1fbc 100644
--- a/ios/chrome/browser/ui/ntp/new_tab_page_controller.mm
+++ b/ios/chrome/browser/ui/ntp/new_tab_page_controller.mm
@@ -353,7 +353,7 @@ enum {
TemplateURLService* service =
ios::TemplateURLServiceFactory::GetForBrowserState(browserState_);
if (service) {
- TemplateURL* defaultURL = service->GetDefaultSearchProvider();
+ const TemplateURL* defaultURL = service->GetDefaultSearchProvider();
if (defaultURL &&
defaultURL->GetEngineType(service->search_terms_data()) !=
SEARCH_ENGINE_GOOGLE) {
« no previous file with comments | « ios/chrome/browser/ui/ntp/google_landing_mediator.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698