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

Unified Diff: chrome/browser/extensions/api/content_settings/content_settings_store.cc

Issue 2740143002: Change base::Value::ListStorage to std::vector<base::Value> (Closed)
Patch Set: Fix Android Compilation Error Created 3 years, 9 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/api/content_settings/content_settings_store.cc
diff --git a/chrome/browser/extensions/api/content_settings/content_settings_store.cc b/chrome/browser/extensions/api/content_settings/content_settings_store.cc
index 8bed231ad3a3496bb6daa3278711266b4f7f1aa1..43fae06ff53cd0b8211bab077575d0280cce8c7c 100644
--- a/chrome/browser/extensions/api/content_settings/content_settings_store.cc
+++ b/chrome/browser/extensions/api/content_settings/content_settings_store.cc
@@ -294,8 +294,8 @@ void ContentSettingsStore::SetExtensionContentSettingFromList(
const base::ListValue* list,
ExtensionPrefsScope scope) {
for (const auto& value : *list) {
- base::DictionaryValue* dict;
- if (!value->GetAsDictionary(&dict)) {
+ const base::DictionaryValue* dict;
Devlin 2017/03/30 22:44:59 nit: init to nullptr
jdoerrie 2017/04/07 13:56:17 Done.
+ if (!value.GetAsDictionary(&dict)) {
NOTREACHED();
continue;
}

Powered by Google App Engine
This is Rietveld 408576698