| 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 3e274ff22a9ba03b263f0d5f716718e721ebb9fa..f625d21bcc8f1c480caa2a4c3fe1759a3b0d911e 100644
|
| --- a/components/ntp_snippets/content_suggestions_service.cc
|
| +++ b/components/ntp_snippets/content_suggestions_service.cc
|
| @@ -495,10 +495,10 @@ void ContentSuggestionsService::RestoreDismissedCategoriesFromPrefs() {
|
|
|
| const base::ListValue* list =
|
| pref_service_->GetList(prefs::kDismissedCategories);
|
| - for (const std::unique_ptr<base::Value>& entry : *list) {
|
| + for (const 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;
|
| }
|
|
|
|
|