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 fdb57a837b076e95f3ebbaf3f8d2c0c29713fbd7..e172db7a4bee2afd7b3e9f5061193639376187f9 100644 |
--- a/chrome/browser/ui/webui/snippets_internals_message_handler.cc |
+++ b/chrome/browser/ui/webui/snippets_internals_message_handler.cc |
@@ -78,6 +78,8 @@ std::string MapCategoryName(ContentSuggestionsCategory category) { |
switch (category) { |
case ContentSuggestionsCategory::ARTICLES: |
return "Articles"; |
+ case ContentSuggestionsCategory::OFFLINE_PAGES: |
+ return "Offline pages (continue browsing)"; |
case ContentSuggestionsCategory::COUNT: |
NOTREACHED() << "Category::COUNT must not be used as a value"; |
} |
@@ -256,6 +258,10 @@ void SnippetsInternalsMessageHandler::SendInitialData() { |
SendBoolean("flag-snippets", base::FeatureList::IsEnabled( |
chrome::android::kNTPSnippetsFeature)); |
+ SendBoolean("flag-offline-page-suggestions", |
+ base::FeatureList::IsEnabled( |
+ chrome::android::kNTPOfflinePageSuggestionsFeature)); |
+ |
web_ui()->CallJavascriptFunctionUnsafe( |
"chrome.SnippetsInternals.setHostRestricted", |
base::FundamentalValue( |