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

Unified Diff: components/ntp_snippets/content_suggestions_service.cc

Issue 2131943002: Change NTPSnippetsService to implement ContentSuggestionsProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@neuerservice2
Patch Set: Insert the default-case again because some compilers need it Created 4 years, 5 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_suggestions_service.cc
diff --git a/components/ntp_snippets/content_suggestions_service.cc b/components/ntp_snippets/content_suggestions_service.cc
index 5b86d95762303e6662ad7e1569dad31efca147f0..3ce179f48df90fd5b6e6555960d86e1302e6e683 100644
--- a/components/ntp_snippets/content_suggestions_service.cc
+++ b/components/ntp_snippets/content_suggestions_service.cc
@@ -61,7 +61,7 @@ void ContentSuggestionsService::FetchSuggestionImage(
ContentSuggestionsCategory category = id_category_map_[suggestion_id];
if (!providers_.count(category)) {
LOG(WARNING) << "Requested image for suggestion " << suggestion_id
- << " for unavailable category " << int(category);
+ << " for unavailable category " << static_cast<int>(category);
callback.Run(suggestion_id, gfx::Image());
return;
}
@@ -92,7 +92,7 @@ void ContentSuggestionsService::DiscardSuggestion(
ContentSuggestionsCategory category = id_category_map_[suggestion_id];
if (!providers_.count(category)) {
LOG(WARNING) << "Discarded suggestion " << suggestion_id
- << " for unavailable category " << int(category);
+ << " for unavailable category " << static_cast<int>(category);
return;
}
providers_[category]->DiscardSuggestion(suggestion_id);

Powered by Google App Engine
This is Rietveld 408576698