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

Unified Diff: components/ntp_snippets/content_suggestion.cc

Issue 2102023002: Add ContentSuggestionsService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add explicit cast from ContentSuggestionsCategory to int Created 4 years, 5 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_suggestion_category.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 0fa4f0cd9dde852a8d368ad0476df7c59c1faadf..ee6dd768c580e16901e846ffb3707bb840c86d5f 100644
--- a/components/ntp_snippets/content_suggestion.cc
+++ b/components/ntp_snippets/content_suggestion.cc
@@ -6,12 +6,12 @@
namespace ntp_snippets {
-ContentSuggestion::ContentSuggestion(
- const std::string& id,
- const ContentSuggestionsProviderType provider,
- const ContentSuggestionCategory category,
- const GURL& url)
- : id_(id), provider_(provider), category_(category), url_(url), score_(0) {}
+ContentSuggestion::ContentSuggestion(const std::string& id, const GURL& url)
+ : id_(id), url_(url), score_(0) {}
+
+ContentSuggestion::ContentSuggestion(ContentSuggestion&&) = default;
+
+ContentSuggestion& ContentSuggestion::operator=(ContentSuggestion&&) = default;
ContentSuggestion::~ContentSuggestion() {}
« no previous file with comments | « components/ntp_snippets/content_suggestion.h ('k') | components/ntp_snippets/content_suggestion_category.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698