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 ef6a5d5441c0ae4c8ec3f2e1ed200460ec0af850..979ed4d21352d7469879b26a322ba58b05b99602 100644 |
| --- a/components/ntp_snippets/content_suggestion.h |
| +++ b/components/ntp_snippets/content_suggestion.h |
| @@ -15,6 +15,8 @@ |
| namespace ntp_snippets { |
| +class NTPSnippet; |
| + |
| // A content suggestion for the new tab page, which can be an article or an |
| // offline page, for example. |
| class ContentSuggestion { |
| @@ -49,6 +51,9 @@ class ContentSuggestion { |
| ContentSuggestion(ContentSuggestion&&); |
| ContentSuggestion& operator=(ContentSuggestion&&); |
| + static ContentSuggestion FromSnippet(Category category, |
|
vitaliii
2016/11/01 23:29:57
Can this be a constructor instead?
fhorschig
2016/11/02 05:05:27
Yes. This deprecated code was dropped in CL 244616
|
| + const NTPSnippet* snippet); |
| + |
| ~ContentSuggestion(); |
| // An ID for identifying the suggestion. The ID is unique application-wide. |