From 3b6ca480aac6068f2a257ae668f1b9fa52e71200 Mon Sep 17 00:00:00 2001 From: Jocelyn Liu Date: Wed, 8 Aug 2018 22:11:43 -0700 Subject: [PATCH] Add show_component_extensions opt for devs to see component extensions in chrome://extensions --- lib/start.js | 3 +++ scripts/commands.js | 1 + 2 files changed, 4 insertions(+) diff --git a/lib/start.js b/lib/start.js index 877b32df031c..f3fc5df5a791 100644 --- a/lib/start.js +++ b/lib/start.js @@ -35,6 +35,9 @@ const start = (buildConfig = config.defaultBuildConfig, options) => { if (options.single_process) { braveArgs.push('--single-process') } + if (options.show_component_extensions) { + braveArgs.push('--show-component-extension-options') + } let cmdOptions = { stdio: 'inherit', diff --git a/scripts/commands.js b/scripts/commands.js index c471b2e5ec74..2b85237a2201 100644 --- a/scripts/commands.js +++ b/scripts/commands.js @@ -68,6 +68,7 @@ program .option('--disable_brave_rewards_extension', 'disable loading the Brave Rewards extension') .option('--disable_pdfjs_extension', 'disable loading the PDFJS extension') .option('--ui_mode ', 'which built-in ui appearance mode to use', /^(dark|light)$/i) + .option('--show_component_extensions', 'show component extensions in chrome://extensions') .option('--enable_brave_update', 'enable brave update') .option('--channel ', 'target channel to start', /^(beta|dev|nightly|release)$/i, 'release') .option('--official_build ', 'force official build settings')