diff options
| author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-27 20:27:37 +0000 |
|---|---|---|
| committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-27 20:27:37 +0000 |
| commit | 3613347db32e0112c044854949072cd3e7d6e213 (patch) | |
| tree | 1e9bc2aa368a217d4ffd5d30d85f50cd262af07d /chrome/browser/ui/views/edit_search_engine_dialog.cc | |
| parent | f39ed01df297378dc80b670cec60456e5e25cc35 (diff) | |
| download | chromium_src-3613347db32e0112c044854949072cd3e7d6e213.zip chromium_src-3613347db32e0112c044854949072cd3e7d6e213.tar.gz chromium_src-3613347db32e0112c044854949072cd3e7d6e213.tar.bz2 | |
Remove const qualifiers on "TemplateURL*" in many TemplateURLService APIs. This has followon effects in many other places, most noticeably ConfirmAddSearchProvider(), which seems to be declared in like 20 files :P
This removes most const_cast<>()s and makes the TemplateURLService APIs a lot more accurate about when the URLs they take or return can be modified. Note that because most of TemplateURL is now immutable except to friends, this doesn't actually give callers dangerous latitude in mucking with TemplateURLs.
This does add a few const_cast<>()s related to keyword autogeneration. Keyword autogeneration will die soon so I didn't care about finding ways around these.
BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10209018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134337 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/views/edit_search_engine_dialog.cc')
| -rw-r--r-- | chrome/browser/ui/views/edit_search_engine_dialog.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/ui/views/edit_search_engine_dialog.cc b/chrome/browser/ui/views/edit_search_engine_dialog.cc index 805deea..d962008 100644 --- a/chrome/browser/ui/views/edit_search_engine_dialog.cc +++ b/chrome/browser/ui/views/edit_search_engine_dialog.cc @@ -31,7 +31,7 @@ using views::Textfield; namespace browser { void EditSearchEngine(gfx::NativeWindow parent, - const TemplateURL* template_url, + TemplateURL* template_url, EditSearchEngineControllerDelegate* delegate, Profile* profile) { EditSearchEngineDialog::Show(parent, template_url, delegate, profile); @@ -40,7 +40,7 @@ void EditSearchEngine(gfx::NativeWindow parent, } // namespace browser EditSearchEngineDialog::EditSearchEngineDialog( - const TemplateURL* template_url, + TemplateURL* template_url, EditSearchEngineControllerDelegate* delegate, Profile* profile) : controller_(new EditSearchEngineController(template_url, @@ -54,7 +54,7 @@ EditSearchEngineDialog::~EditSearchEngineDialog() { // static void EditSearchEngineDialog::Show(gfx::NativeWindow parent, - const TemplateURL* template_url, + TemplateURL* template_url, EditSearchEngineControllerDelegate* delegate, Profile* profile) { EditSearchEngineDialog* contents = |
