| Index: components/ntp_snippets/ntp_snippet.h
|
| diff --git a/components/ntp_snippets/ntp_snippet.h b/components/ntp_snippets/ntp_snippet.h
|
| index 6cde5c9c260e88742d17e6d676372f84399fe9c5..b7c1bf031d4f0dc28374dd760cf73d5865a05ec2 100644
|
| --- a/components/ntp_snippets/ntp_snippet.h
|
| +++ b/components/ntp_snippets/ntp_snippet.h
|
| @@ -100,6 +100,9 @@ class NTPSnippet {
|
| !best_source().publisher_name.empty();
|
| }
|
|
|
| + float score() const { return score_; }
|
| + void set_score(float score) { score_ = score; }
|
| +
|
| // Public for testing.
|
| static base::Time TimeFromJsonString(const std::string& timestamp_str);
|
| static std::string TimeToJsonString(const base::Time& time);
|
| @@ -112,9 +115,7 @@ class NTPSnippet {
|
| base::Time publish_date_;
|
| base::Time expiry_date_;
|
| GURL amp_url_;
|
| - size_t best_source_index_;
|
| -
|
| - std::vector<SnippetSource> sources_;
|
| + float score_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(NTPSnippet);
|
| };
|
|
|