| Index: chrome/browser/extensions/component_loader.cc
|
| diff --git a/chrome/browser/extensions/component_loader.cc b/chrome/browser/extensions/component_loader.cc
|
| index bc54f827e8b5275ad4a8624b7afd3dbc00934298..9c33be828570292ec369e3b3a286261b01b9d051 100644
|
| --- a/chrome/browser/extensions/component_loader.cc
|
| +++ b/chrome/browser/extensions/component_loader.cc
|
| @@ -324,6 +324,12 @@ void ComponentLoader::AddDefaultComponentExtensions() {
|
| #endif
|
|
|
| #if defined(OS_CHROMEOS)
|
| + const CommandLine* command_line = CommandLine::ForCurrentProcess();
|
| + if (command_line->HasSwitch(switches::kEnableBackgroundLoader)) {
|
| + Add(IDR_BACKLOADER_MANIFEST,
|
| + FilePath(FILE_PATH_LITERAL("backloader")));
|
| + }
|
| +
|
| Add(IDR_MOBILE_MANIFEST,
|
| FilePath(FILE_PATH_LITERAL("/usr/share/chromeos-assets/mobile")));
|
|
|
| @@ -333,7 +339,6 @@ void ComponentLoader::AddDefaultComponentExtensions() {
|
| AddGaiaAuthExtension();
|
|
|
| // TODO(gauravsh): Only include echo extension on official builds.
|
| - const CommandLine* command_line = CommandLine::ForCurrentProcess();
|
| FilePath echo_extension_path(FILE_PATH_LITERAL(
|
| "/usr/share/chromeos-assets/echo"));
|
| if (command_line->HasSwitch(switches::kEchoExtensionPath)) {
|
|
|