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

Unified Diff: chrome/browser/ui/search_engines/keyword_editor_controller.h

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.h
diff --git a/chrome/browser/ui/search_engines/keyword_editor_controller.h b/chrome/browser/ui/search_engines/keyword_editor_controller.h
index e39662c470efa73d404376e0011e391cb28594ba..c84a1c57d6aa4161e728ed4bae179b0d5157443c 100644
--- a/chrome/browser/ui/search_engines/keyword_editor_controller.h
+++ b/chrome/browser/ui/search_engines/keyword_editor_controller.h
@@ -48,7 +48,7 @@ class KeywordEditorController {
void RemoveTemplateURL(int index);
// Returns the default search provider.
- TemplateURL* GetDefaultSearchProvider();
+ const TemplateURL* GetDefaultSearchProvider();
// Make the TemplateURL at the specified index (into the TableModel) the
// default search provider. Return the new index, or -1 if nothing was done.

Powered by Google App Engine
This is Rietveld 408576698