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

Unified Diff: extensions/browser/verified_contents.cc

Issue 2816513002: Revert of Change base::Value::ListStorage to std::vector<base::Value> (Closed)
Patch Set: 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: extensions/browser/verified_contents.cc
diff --git a/extensions/browser/verified_contents.cc b/extensions/browser/verified_contents.cc
index eaf4c8fa93d6f763b25e2447ba163fe15f6bcb1e..fd60f313c59bb6cd35227e266625fb4c145157fc 100644
--- a/extensions/browser/verified_contents.cc
+++ b/extensions/browser/verified_contents.cc
@@ -43,12 +43,12 @@
// Helper function to iterate over a list of dictionaries, returning the
// dictionary that has |key| -> |value| in it, if any, or NULL.
-const DictionaryValue* FindDictionaryWithValue(const ListValue* list,
- const std::string& key,
- const std::string& value) {
+DictionaryValue* FindDictionaryWithValue(const ListValue* list,
+ const std::string& key,
+ const std::string& value) {
for (const auto& i : *list) {
- const DictionaryValue* dictionary;
- if (!i.GetAsDictionary(&dictionary))
+ DictionaryValue* dictionary;
+ if (!i->GetAsDictionary(&dictionary))
continue;
std::string found_value;
if (dictionary->GetString(key, &found_value) && found_value == value)
@@ -248,20 +248,20 @@
// }
// }
// ]
- const DictionaryValue* dictionary =
+ DictionaryValue* dictionary =
FindDictionaryWithValue(top_list, kDescriptionKey, kTreeHashPerFile);
- const DictionaryValue* signed_content = NULL;
+ DictionaryValue* signed_content = NULL;
if (!dictionary ||
!dictionary->GetDictionaryWithoutPathExpansion(kSignedContentKey,
&signed_content)) {
return false;
}
- const ListValue* signatures = NULL;
+ ListValue* signatures = NULL;
if (!signed_content->GetList(kSignaturesKey, &signatures))
return false;
- const DictionaryValue* signature_dict =
+ DictionaryValue* signature_dict =
FindDictionaryWithValue(signatures, kHeaderKidKey, kWebstoreKId);
if (!signature_dict)
return false;
« no previous file with comments | « extensions/browser/extension_prefs.cc ('k') | extensions/common/api/declarative/declarative_manifest_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698