| Index: components/ntp_snippets/content_suggestions_service.cc
|
| diff --git a/components/ntp_snippets/content_suggestions_service.cc b/components/ntp_snippets/content_suggestions_service.cc
|
| index 9d4955e1e2872eda23d76479904ebb3e65b90805..cb54bbb7174ea315ab0aadb7be7a8bc94160f247 100644
|
| --- a/components/ntp_snippets/content_suggestions_service.cc
|
| +++ b/components/ntp_snippets/content_suggestions_service.cc
|
| @@ -606,10 +606,10 @@
|
|
|
| const base::ListValue* list =
|
| pref_service_->GetList(prefs::kDismissedCategories);
|
| - for (const base::Value& entry : *list) {
|
| + for (const std::unique_ptr<base::Value>& entry : *list) {
|
| int id = 0;
|
| - if (!entry.GetAsInteger(&id)) {
|
| - DLOG(WARNING) << "Invalid category pref value: " << entry;
|
| + if (!entry->GetAsInteger(&id)) {
|
| + DLOG(WARNING) << "Invalid category pref value: " << *entry;
|
| continue;
|
| }
|
|
|
|
|