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

Unified Diff: ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm

Issue 2706083002: Add publisher information on ContentSuggestionsArticles (Closed)
Patch Set: Fix compilation Created 3 years, 10 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
« no previous file with comments | « no previous file | ios/chrome/browser/ui/content_suggestions/content_suggestion.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm
diff --git a/ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm b/ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm
index 71ffec5748bdbff67487ef4a6dfe148b1df8e2f2..242f0e640001e9dee380d48052b7e0bb24fdab3d 100644
--- a/ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm
+++ b/ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm
@@ -56,6 +56,9 @@ ContentSuggestion* ConvertContentSuggestion(
suggestion.title = base::SysUTF16ToNSString(contentSuggestion.title());
suggestion.text = base::SysUTF16ToNSString(contentSuggestion.snippet_text());
suggestion.url = contentSuggestion.url();
+ suggestion.publisher =
+ base::SysUTF16ToNSString(contentSuggestion.publisher_name());
+ suggestion.publishDate = contentSuggestion.publish_date();
return suggestion;
}
« no previous file with comments | « no previous file | ios/chrome/browser/ui/content_suggestions/content_suggestion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698