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

Unified Diff: ios/chrome/browser/ui/contextual_search/contextual_search_delegate.cc

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/contextual_search/contextual_search_delegate.cc
diff --git a/ios/chrome/browser/ui/contextual_search/contextual_search_delegate.cc b/ios/chrome/browser/ui/contextual_search/contextual_search_delegate.cc
index 93868073a9a5b0405e491b5e51671003338ff9ea..624a0483f6f5083a8885fd80b179b48115119412 100644
--- a/ios/chrome/browser/ui/contextual_search/contextual_search_delegate.cc
+++ b/ios/chrome/browser/ui/contextual_search/contextual_search_delegate.cc
@@ -266,7 +266,8 @@ GURL ContextualSearchDelegate::BuildRequestUrl() {
std::string ContextualSearchDelegate::GetSearchTermResolutionUrlString(
const std::string& selected_text,
const std::string& base_page_url) {
- TemplateURL* template_url = template_url_service_->GetDefaultSearchProvider();
+ const TemplateURL* template_url =
+ template_url_service_->GetDefaultSearchProvider();
TemplateURLRef::SearchTermsArgs search_terms_args =
TemplateURLRef::SearchTermsArgs(base::string16());

Powered by Google App Engine
This is Rietveld 408576698