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

Side by Side Diff: components/ntp_snippets/content_suggestion.cc

Issue 2616543002: Expose notification info in ContentSuggestion (Closed)
Patch Set: Address comments Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/ntp_snippets/content_suggestion.h" 5 #include "components/ntp_snippets/content_suggestion.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 namespace ntp_snippets { 9 namespace ntp_snippets {
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 DCHECK(id_.category().IsKnownCategory(KnownCategories::DOWNLOADS)); 45 DCHECK(id_.category().IsKnownCategory(KnownCategories::DOWNLOADS));
46 download_suggestion_extra_ = std::move(download_suggestion_extra); 46 download_suggestion_extra_ = std::move(download_suggestion_extra);
47 } 47 }
48 48
49 void ContentSuggestion::set_recent_tab_suggestion_extra( 49 void ContentSuggestion::set_recent_tab_suggestion_extra(
50 std::unique_ptr<RecentTabSuggestionExtra> recent_tab_suggestion_extra) { 50 std::unique_ptr<RecentTabSuggestionExtra> recent_tab_suggestion_extra) {
51 DCHECK(id_.category().IsKnownCategory(KnownCategories::RECENT_TABS)); 51 DCHECK(id_.category().IsKnownCategory(KnownCategories::RECENT_TABS));
52 recent_tab_suggestion_extra_ = std::move(recent_tab_suggestion_extra); 52 recent_tab_suggestion_extra_ = std::move(recent_tab_suggestion_extra);
53 } 53 }
54 54
55 void ContentSuggestion::set_notification_extra(
56 std::unique_ptr<NotificationExtra> notification_extra) {
57 notification_extra_ = std::move(notification_extra);
58 }
59
55 } // namespace ntp_snippets 60 } // namespace ntp_snippets
OLDNEW
« no previous file with comments | « components/ntp_snippets/content_suggestion.h ('k') | components/ntp_snippets/remote/ntp_snippet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698