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

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

Issue 2228553003: a provider of Physical Web pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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: 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 68e8bdc0b1f8d2dfcc75639a11fe29615d9f0486..99ca501001eaada3eae53cfce22bb1387252d510 100644
--- a/chrome/browser/ui/webui/snippets_internals_message_handler.cc
+++ b/chrome/browser/ui/webui/snippets_internals_message_handler.cc
@@ -82,6 +82,9 @@ std::string GetCategoryTitle(Category category) {
if (category.IsKnownCategory(KnownCategories::OFFLINE_PAGES)) {
return "Offline pages (continue browsing)";
}
+ if (category.IsKnownCategory(KnownCategories::PHYSICAL_WEB_PAGES)) {
+ return "Physical Web pages (in the vicinity)";
+ }
return std::string();
}
@@ -236,6 +239,10 @@ void SnippetsInternalsMessageHandler::SendAllContent() {
base::FeatureList::IsEnabled(
chrome::android::kNTPOfflinePageSuggestionsFeature));
+ SendBoolean("flag-physical-web-page-suggestions",
+ base::FeatureList::IsEnabled(
+ chrome::android::kNTPPhysicalWebPageSuggestionsFeature));
+
web_ui()->CallJavascriptFunctionUnsafe(
"chrome.SnippetsInternals.setHostRestricted",
base::FundamentalValue(

Powered by Google App Engine
This is Rietveld 408576698