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

Unified Diff: chrome/browser/extensions/api/messaging/native_messaging_host_manifest.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: chrome/browser/extensions/api/messaging/native_messaging_host_manifest.cc
diff --git a/chrome/browser/extensions/api/messaging/native_messaging_host_manifest.cc b/chrome/browser/extensions/api/messaging/native_messaging_host_manifest.cc
index b5106121b375fef4c1c6f54fc1902325e9568c7b..e54984f45d9bdd288e1c4d3ba4d942a3a29c5dab 100644
--- a/chrome/browser/extensions/api/messaging/native_messaging_host_manifest.cc
+++ b/chrome/browser/extensions/api/messaging/native_messaging_host_manifest.cc
@@ -112,7 +112,7 @@
for (base::ListValue::const_iterator it = allowed_origins_list->begin();
it != allowed_origins_list->end(); ++it) {
std::string pattern_string;
- if (!it->GetAsString(&pattern_string)) {
+ if (!(*it)->GetAsString(&pattern_string)) {
*error_message = "allowed_origins must be list of strings.";
return false;
}

Powered by Google App Engine
This is Rietveld 408576698