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))) { |