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

Unified Diff: components/omnibox/browser/autocomplete_controller.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
Index: components/omnibox/browser/autocomplete_controller.cc
diff --git a/components/omnibox/browser/autocomplete_controller.cc b/components/omnibox/browser/autocomplete_controller.cc
index bfc64f9483e413b44e6b66ca23fb4c4f7718ae3b..d251027b29ecb51675a39cf7835d64cdede5db4c 100644
--- a/components/omnibox/browser/autocomplete_controller.cc
+++ b/components/omnibox/browser/autocomplete_controller.cc
@@ -430,7 +430,7 @@ void AutocompleteController::UpdateMatchDestinationURLWithQueryFormulationTime(
void AutocompleteController::UpdateMatchDestinationURL(
const TemplateURLRef::SearchTermsArgs& search_terms_args,
AutocompleteMatch* match) const {
- TemplateURL* template_url = match->GetTemplateURL(
+ const TemplateURL* template_url = match->GetTemplateURL(
template_url_service_, false);
if (!template_url)
return;
« no previous file with comments | « chrome/browser/ui/search_engines/edit_search_engine_controller.cc ('k') | components/omnibox/browser/autocomplete_match.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698