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

Unified Diff: components/ntp_snippets/remote/remote_suggestions_fetcher.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: components/ntp_snippets/remote/remote_suggestions_fetcher.cc
diff --git a/components/ntp_snippets/remote/remote_suggestions_fetcher.cc b/components/ntp_snippets/remote/remote_suggestions_fetcher.cc
index b07a116dfe379a52ceb01e2911146f7a9a41f46e..8bd852cedd2cc393fcb1e4dec8c531a5579151da 100644
--- a/components/ntp_snippets/remote/remote_suggestions_fetcher.cc
+++ b/components/ntp_snippets/remote/remote_suggestions_fetcher.cc
@@ -112,7 +112,7 @@
const base::Time& fetch_time) {
for (const auto& value : list) {
const base::DictionaryValue* dict = nullptr;
- if (!value.GetAsDictionary(&dict)) {
+ if (!value->GetAsDictionary(&dict)) {
return false;
}
@@ -458,7 +458,7 @@
std::string utf8_title;
int remote_category_id = -1;
const base::DictionaryValue* category_value = nullptr;
- if (!(v.GetAsDictionary(&category_value) &&
+ if (!(v->GetAsDictionary(&category_value) &&
category_value->GetString("localizedTitle", &utf8_title) &&
category_value->GetInteger("id", &remote_category_id) &&
(remote_category_id > 0))) {

Powered by Google App Engine
This is Rietveld 408576698