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

Unified Diff: components/ntp_snippets/content_suggestion.cc

Issue 2846503002: [Remote suggestions] Get favicon URLs from archive (Closed)
Patch Set: Created 3 years, 8 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 | « components/ntp_snippets/content_suggestion.h ('k') | components/ntp_snippets/content_suggestions_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/content_suggestion.cc
diff --git a/components/ntp_snippets/content_suggestion.cc b/components/ntp_snippets/content_suggestion.cc
index 3341aad37d5534dfbce98e14fd1ba48ea6abe503..a26bfa1e25505021cfd3021c2d4c556b0cff17c6 100644
--- a/components/ntp_snippets/content_suggestion.cc
+++ b/components/ntp_snippets/content_suggestion.cc
@@ -43,6 +43,11 @@ std::ostream& operator<<(std::ostream& os, const ContentSuggestion::ID& id) {
return os;
}
+// static
+GURL ContentSuggestion::GetFaviconDomain(const GURL& favicon_url) {
+ return favicon_url.GetWithEmptyPath();
+}
+
void ContentSuggestion::set_download_suggestion_extra(
std::unique_ptr<DownloadSuggestionExtra> download_suggestion_extra) {
DCHECK(id_.category().IsKnownCategory(KnownCategories::DOWNLOADS));
« no previous file with comments | « components/ntp_snippets/content_suggestion.h ('k') | components/ntp_snippets/content_suggestions_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698