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

Unified Diff: chrome/browser/ui/webui/snippets_internals_message_handler.cc

Issue 2578173002: NTP: Extract JSON requests from Fetcher. (Closed)
Patch Set: Created 4 years 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: chrome/browser/ui/webui/snippets_internals_message_handler.cc
diff --git a/chrome/browser/ui/webui/snippets_internals_message_handler.cc b/chrome/browser/ui/webui/snippets_internals_message_handler.cc
index c32b36c4355fb5317082bdb2a46a42dcebaacfdd..d3aa887f8dfbf05c86d42d6ddc534beb028d9fd5 100644
--- a/chrome/browser/ui/webui/snippets_internals_message_handler.cc
+++ b/chrome/browser/ui/webui/snippets_internals_message_handler.cc
@@ -303,14 +303,14 @@ void SnippetsInternalsMessageHandler::SendAllContent() {
if (remote_suggestions_provider_) {
switch (
remote_suggestions_provider_->snippets_fetcher()->personalization()) {
- case ntp_snippets::NTPSnippetsFetcher::Personalization::kPersonal:
+ case ntp_snippets::internal::Personalization::kPersonal:
tschumann 2016/12/16 16:36:20 nit while we're here: The string should be produce
fhorschig 2016/12/20 10:07:38 Fetcher creates the string. TODO added. Another TO
SendString("switch-personalized", "Only personalized");
break;
- case ntp_snippets::NTPSnippetsFetcher::Personalization::kBoth:
+ case ntp_snippets::internal::Personalization::kBoth:
SendString("switch-personalized",
"Both personalized and non-personalized");
break;
- case ntp_snippets::NTPSnippetsFetcher::Personalization::kNonPersonal:
+ case ntp_snippets::internal::Personalization::kNonPersonal:
SendString("switch-personalized", "Only non-personalized");
break;
}
« no previous file with comments | « no previous file | components/ntp_snippets/BUILD.gn » ('j') | components/ntp_snippets/remote/ntp_snippets_fetcher.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698