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

Unified Diff: chrome/browser/extensions/component_loader.cc

Issue 10855239: Wired background loader component extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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
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)) {

Powered by Google App Engine
This is Rietveld 408576698