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

Unified Diff: components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc

Issue 2561493002: Pass Physical Web metadata through a struct (Closed)
Patch Set: Created 4 years 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/physical_web_pages/physical_web_page_suggestions_provider.cc
diff --git a/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc b/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc
index 93179bd19c533fa3fd238a4f18df88bd9cd228e0..1efa79f3f7bda38c665b161f19e6717e0f2d4609 100644
--- a/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc
+++ b/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc
@@ -153,7 +153,7 @@ PhysicalWebPageSuggestionsProvider::GetMostRecentPhysicalWebPagesWithFilter(
int max_quantity,
const std::set<std::string>& excluded_ids) {
std::unique_ptr<ListValue> page_values =
- physical_web_data_source_->GetMetadata();
+ physical_web_data_source_->GetMetadataListValue();
std::vector<const DictionaryValue*> page_dictionaries;
for (const std::unique_ptr<Value>& page_value : *page_values) {

Powered by Google App Engine
This is Rietveld 408576698