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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2361643004: Control distillability with command-line flag (Closed)
Patch Set: alphabetical order Created 4 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 74f9a5c4606eccca2c5edbc14cbe57f37680ca00..31c0f997a8829e6592c1c498662c8c5a588893db 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -1612,6 +1612,11 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
MaybeAppendBlinkSettingsSwitchForFieldTrial(
browser_command_line, command_line);
+#if defined(OS_ANDROID)
+ // If the platform is Android, force the distillability service on.
+ command_line->AppendSwitch(switches::kEnableDistillabilityService);
+#endif
+
// Please keep this in alphabetical order.
static const char* const kSwitchNames[] = {
#if defined(OS_ANDROID)
@@ -1643,6 +1648,7 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
switches::kDisableJavaScriptHarmonyShipping,
switches::kDisableNewBookmarkApps,
switches::kEnableBenchmarking,
+ switches::kEnableDistillabilityService,
switches::kEnableNaCl,
#if !defined(DISABLE_NACL)
switches::kEnableNaClDebug,
« no previous file with comments | « no previous file | chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698