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

Unified Diff: components/ntp_snippets/remote/remote_suggestions_provider_impl.cc

Issue 2751093003: Unifies the additional actions for Categories (Closed)
Patch Set: Fix compilation on Android (hopefully) Created 3 years, 9 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_provider_impl.cc
diff --git a/components/ntp_snippets/remote/remote_suggestions_provider_impl.cc b/components/ntp_snippets/remote/remote_suggestions_provider_impl.cc
index 81acdbe0ee5d36c45e6007c02c50a04a9b73837c..4fbdd8c27a98be54cb18d040efe0bdee5dc1bd9e 100644
--- a/components/ntp_snippets/remote/remote_suggestions_provider_impl.cc
+++ b/components/ntp_snippets/remote/remote_suggestions_provider_impl.cc
@@ -1254,8 +1254,9 @@ void RemoteSuggestionsProviderImpl::StoreCategoriesToPrefs() {
dict->SetString(kCategoryContentTitle, content.info.title());
dict->SetBoolean(kCategoryContentProvidedByServer,
content.included_in_last_server_response);
- dict->SetBoolean(kCategoryContentAllowFetchingMore,
- content.info.has_fetch_action());
+ bool has_fetch_action = content.info.additional_action() ==
+ ContentSuggestionsAdditionalAction::FETCH;
+ dict->SetBoolean(kCategoryContentAllowFetchingMore, has_fetch_action);
list.Append(std::move(dict));
}
// Finally, store the result in the pref service.

Powered by Google App Engine
This is Rietveld 408576698