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

Unified Diff: chrome/browser/android/locale/special_locale_handler.cc

Issue 2816353002: Make const versions GetTemplateURLForKeyword, GetTemplateURLForGUID, GetTemplateURLForHost (Closed)
Patch Set: Make definition and declaration order of new functions match 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 | « no previous file | chrome/browser/ui/omnibox/chrome_omnibox_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/locale/special_locale_handler.cc
diff --git a/chrome/browser/android/locale/special_locale_handler.cc b/chrome/browser/android/locale/special_locale_handler.cc
index 0f3271f1d1396c34db944dd2a21a57391fc1368d..e1f55b6440295cb26c724571fc97f20d5068a6e2 100644
--- a/chrome/browser/android/locale/special_locale_handler.cc
+++ b/chrome/browser/android/locale/special_locale_handler.cc
@@ -65,8 +65,9 @@ jboolean SpecialLocaleHandler::LoadTemplateUrls(
return false;
for (const auto& data_url : prepopulated_list) {
- TemplateURL* existing = template_url_service_->GetTemplateURLForKeyword(
- data_url.get()->keyword());
+ const TemplateURL* existing =
+ template_url_service_->GetTemplateURLForKeyword(
+ data_url.get()->keyword());
// Do not add local engines if there is already one.
if (existing)
continue;
« no previous file with comments | « no previous file | chrome/browser/ui/omnibox/chrome_omnibox_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698