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

Unified Diff: components/ntp_snippets/ntp_snippet.h

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/ntp_snippet.h
diff --git a/components/ntp_snippets/ntp_snippet.h b/components/ntp_snippets/ntp_snippet.h
index 416cffca7dbedbd016b845a4271d2416c0d4d96d..e4e4eae9ef5c2c4cc3978599a0beb936c72e047f 100644
--- a/components/ntp_snippets/ntp_snippet.h
+++ b/components/ntp_snippets/ntp_snippet.h
@@ -126,7 +126,8 @@ class NTPSnippet {
bool is_discarded() const { return is_discarded_; }
void set_discarded(bool discarded) { is_discarded_ = discarded; }
- std::unique_ptr<ContentSuggestion> ToContentSuggestion() const;
+ std::unique_ptr<ContentSuggestion> ToContentSuggestion(
+ const std::string& id) const;
Marc Treib 2016/07/05 13:17:12 Mh, this is ugly... so the caller has to get the I
Philipp Keck 2016/07/05 13:52:00 Done. Now that MakeUniqueID is static, that call c
// Public for testing.
static base::Time TimeFromJsonString(const std::string& timestamp_str);

Powered by Google App Engine
This is Rietveld 408576698