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

Unified Diff: chrome/browser/extensions/extension_web_ui.cc

Issue 10837044: Correct const accessors in base/values.(h|cc), Part II (ListValue) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: David's comments Created 8 years, 4 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/extensions/extension_web_ui.cc
diff --git a/chrome/browser/extensions/extension_web_ui.cc b/chrome/browser/extensions/extension_web_ui.cc
index ad4233bf02797c8a1e29b9eb6d768aca35f5f151..d433118c47d295faf37a9246915affe71217cacc 100644
--- a/chrome/browser/extensions/extension_web_ui.cc
+++ b/chrome/browser/extensions/extension_web_ui.cc
@@ -232,7 +232,7 @@ bool ExtensionWebUI::HandleChromeURLOverride(
size_t i = 0;
while (i < url_list->GetSize()) {
- Value* val = NULL;
+ const Value* val = NULL;
url_list->Get(i, &val);
// Verify that the override value is good. If not, unregister it and find
@@ -365,7 +365,7 @@ void ExtensionWebUI::RegisterChromeURLOverrides(
void ExtensionWebUI::UnregisterAndReplaceOverride(const std::string& page,
Profile* profile,
ListValue* list,
- Value* override) {
+ const Value* override) {
size_t index = 0;
bool found = list->Remove(*override, &index);
if (found && index == 0) {
@@ -379,7 +379,8 @@ void ExtensionWebUI::UnregisterAndReplaceOverride(const std::string& page,
// static
void ExtensionWebUI::UnregisterChromeURLOverride(const std::string& page,
- Profile* profile, Value* override) {
+ Profile* profile,
+ const Value* override) {
if (!override)
return;
PrefService* prefs = profile->GetPrefs();
« no previous file with comments | « chrome/browser/extensions/extension_web_ui.h ('k') | chrome/browser/extensions/webstore_inline_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698