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

Unified Diff: chrome/browser/web_resource/notification_promo.cc

Issue 10834004: Correct const accessors in base/values.(h|cc) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Reverting webdriver:Command::parameters_ to const Created 8 years, 5 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/web_resource/notification_promo.cc
diff --git a/chrome/browser/web_resource/notification_promo.cc b/chrome/browser/web_resource/notification_promo.cc
index 4baf2191f4a33abfe4a397a24b8174ffd79331c8..e10fa0b9a3cea799571e55f8654e1cf9742cb7c8 100644
--- a/chrome/browser/web_resource/notification_promo.cc
+++ b/chrome/browser/web_resource/notification_promo.cc
@@ -214,7 +214,7 @@ NotificationPromo::NotificationPromo(Profile* profile)
NotificationPromo::~NotificationPromo() {}
void NotificationPromo::InitFromJson(const DictionaryValue& json) {
- ListValue* promo_list = NULL;
+ const ListValue* promo_list = NULL;
#if !defined(OS_ANDROID)
if (!json.GetList(promo_type_, &promo_list))
return;
@@ -409,7 +409,7 @@ void NotificationPromo::InitFromPrefs() {
if (!promo_dict)
return;
- base::ListValue* promo_list(NULL);
+ const base::ListValue* promo_list(NULL);
promo_dict->GetList(promo_type_, &promo_list);
if (!promo_list)
return;
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_handler.cc ('k') | chrome/common/extensions/api/extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698