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

Unified Diff: components/ntp_snippets/content_suggestion.cc

Issue 2449873003: [NTP Snippets] Another round of clang-tidy cleanups (Closed)
Patch Set: rebase Created 4 years, 2 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/content_suggestion.cc
diff --git a/components/ntp_snippets/content_suggestion.cc b/components/ntp_snippets/content_suggestion.cc
index 44524cb8bf923471f76aa6813caa2368c67686e5..1b2c3e475cb559f8d6fec97f75021de15f3d81b1 100644
--- a/components/ntp_snippets/content_suggestion.cc
+++ b/components/ntp_snippets/content_suggestion.cc
@@ -15,7 +15,7 @@ bool ContentSuggestion::ID::operator!=(const ID& rhs) const {
return !(*this == rhs);
}
-ContentSuggestion::ContentSuggestion(ID id, const GURL& url)
+ContentSuggestion::ContentSuggestion(const ID& id, const GURL& url)
: id_(id), url_(url), score_(0) {}
ContentSuggestion::ContentSuggestion(Category category,
@@ -29,7 +29,7 @@ ContentSuggestion& ContentSuggestion::operator=(ContentSuggestion&&) = default;
ContentSuggestion::~ContentSuggestion() = default;
-std::ostream& operator<<(std::ostream& os, ContentSuggestion::ID id) {
+std::ostream& operator<<(std::ostream& os, const ContentSuggestion::ID& id) {
os << id.category() << "|" << id.id_within_category();
return os;
}
« no previous file with comments | « components/ntp_snippets/content_suggestion.h ('k') | components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698