Chromium Code Reviews| Index: components/ntp_snippets/content_suggestion.h |
| diff --git a/components/ntp_snippets/content_suggestion.h b/components/ntp_snippets/content_suggestion.h |
| index b4e64f887dfb53e56081c18f7a463d9f31d4a724..14c65481c69b897684c0c9941c7e2e41b9c35b44 100644 |
| --- a/components/ntp_snippets/content_suggestion.h |
| +++ b/components/ntp_snippets/content_suggestion.h |
| @@ -151,6 +151,11 @@ class ContentSuggestion { |
| void set_notification_extra( |
| std::unique_ptr<NotificationExtra> notification_extra); |
| + const base::Time& fetch_time() const { return fetch_time_; } |
| + void set_fetch_time(const base::Time& fetch_time) { |
| + fetch_time_ = fetch_time; |
| + } |
| + |
| private: |
| ID id_; |
| GURL url_; |
| @@ -163,6 +168,10 @@ class ContentSuggestion { |
| std::unique_ptr<RecentTabSuggestionExtra> recent_tab_suggestion_extra_; |
| std::unique_ptr<NotificationExtra> notification_extra_; |
| + // The time when the remote suggestion was fetched from the server. This filed |
|
Marc Treib
2017/02/10 16:16:56
s/filed/field/
markusheintz_
2017/02/13 09:59:55
Done.
|
| + // is only populated when the ContentSuggestion is created from a |
| + // RemoteSuggestion. |
| + base::Time fetch_time_; |
|
Marc Treib
2017/02/10 16:16:56
fetch_date_, to be consistent with publish_date_,
markusheintz_
2017/02/13 09:59:55
Done.
|
| DISALLOW_COPY_AND_ASSIGN(ContentSuggestion); |
|
Marc Treib
2017/02/10 16:16:56
nit: empty line before
markusheintz_
2017/02/13 09:59:55
Done.
|
| }; |