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

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: Remove ContentSuggestionsServiceType; allow at most one provider per category 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
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..2ce904ffb96a13d1490fb2a0f7142dc57abb28ab 100644
--- a/components/ntp_snippets/content_suggestion.cc
+++ b/components/ntp_snippets/content_suggestion.cc
@@ -6,12 +6,14 @@
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 ContentSuggestionCategory category,
+ const GURL& url)
+ : id_(id), category_(category), url_(url), score_(0) {}
+
+ContentSuggestion::ContentSuggestion(ContentSuggestion&&) = default;
+
+ContentSuggestion& ContentSuggestion::operator=(ContentSuggestion&&) = default;
ContentSuggestion::~ContentSuggestion() {}

Powered by Google App Engine
This is Rietveld 408576698