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

Unified Diff: components/ntp_snippets/ntp_snippet.h

Issue 1922083004: Allow fetching personalized snippets from ChromeReader. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase-update and minor polish Created 4 years, 7 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 688098417031b001a998594a0b29b9fa780c18ee..5c79fc6c6e4e92a6b32772b9260eb78c43464159 100644
--- a/components/ntp_snippets/ntp_snippet.h
+++ b/components/ntp_snippets/ntp_snippet.h
@@ -82,6 +82,9 @@ class NTPSnippet {
const GURL& amp_url() const { return amp_url_; }
void set_amp_url(const GURL& amp_url) { amp_url_ = amp_url; }
+ double score() const { return score_; }
+ void set_score(double score) { score_ = score; }
+
// Public for testing.
static base::Time TimeFromJsonString(const std::string& timestamp_str);
static std::string TimeToJsonString(const base::Time& time);
@@ -96,6 +99,7 @@ class NTPSnippet {
base::Time publish_date_;
base::Time expiry_date_;
GURL amp_url_;
+ double score_;
Marc Treib 2016/05/04 11:50:09 I think float is good enough here :)
jkrcal 2016/05/04 14:04:07 Done.
DISALLOW_COPY_AND_ASSIGN(NTPSnippet);
};

Powered by Google App Engine
This is Rietveld 408576698