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

Unified Diff: extensions/browser/api/storage/storage_api.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/api/storage/storage_api.cc
diff --git a/extensions/browser/api/storage/storage_api.cc b/extensions/browser/api/storage/storage_api.cc
index a844b4bbb64641df4f71945f3b98b2e8d0bead56..e6403a31de7ef2c774c30a5d2f94247d4d2c45e1 100644
--- a/extensions/browser/api/storage/storage_api.cc
+++ b/extensions/browser/api/storage/storage_api.cc
@@ -108,7 +108,7 @@
std::string as_string;
for (base::ListValue::const_iterator it = from.begin();
it != from.end(); ++it) {
- if (it->GetAsString(&as_string)) {
+ if ((*it)->GetAsString(&as_string)) {
to->push_back(as_string);
}
}

Powered by Google App Engine
This is Rietveld 408576698