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; |
} |