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

Unified Diff: chrome/browser/ui/search_engines/keyword_editor_controller.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: chrome/browser/ui/search_engines/keyword_editor_controller.cc
diff --git a/chrome/browser/ui/search_engines/keyword_editor_controller.cc b/chrome/browser/ui/search_engines/keyword_editor_controller.cc
index fb4ef4b757e37e9a4edeca7cfc775eb5dce63f66..6bfa791b7526608dc8519b81ffb565bc76c475f5 100644
--- a/chrome/browser/ui/search_engines/keyword_editor_controller.cc
+++ b/chrome/browser/ui/search_engines/keyword_editor_controller.cc
@@ -76,7 +76,7 @@ void KeywordEditorController::RemoveTemplateURL(int index) {
base::RecordAction(UserMetricsAction("KeywordEditor_RemoveKeyword"));
}
-TemplateURL* KeywordEditorController::GetDefaultSearchProvider() {
+const TemplateURL* KeywordEditorController::GetDefaultSearchProvider() {
return url_model_->GetDefaultSearchProvider();
}
« no previous file with comments | « chrome/browser/ui/search_engines/keyword_editor_controller.h ('k') | components/omnibox/browser/history_url_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698