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

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

Issue 11411133: Add command line flag to enable/disable apps_debugger. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: rebase Created 8 years, 1 month 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/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/component_loader.cc
diff --git a/chrome/browser/extensions/component_loader.cc b/chrome/browser/extensions/component_loader.cc
index 1402902ab9930fb7538e83a3379e98457dd68a6b..79ab12697796cc8b11554d7e1db8a76e746291cc 100644
--- a/chrome/browser/extensions/component_loader.cc
+++ b/chrome/browser/extensions/component_loader.cc
@@ -329,8 +329,11 @@ void ComponentLoader::AddDefaultComponentExtensions() {
#endif
// Apps Debugger
-Add(IDR_APPS_DEBUGGER_MANIFEST,
- FilePath(FILE_PATH_LITERAL("apps_debugger")));
+if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kAppsDebugger)) {
+ Add(IDR_APPS_DEBUGGER_MANIFEST,
+ FilePath(FILE_PATH_LITERAL("apps_debugger")));
+}
#if defined(OS_CHROMEOS)
Add(IDR_WALLPAPERMANAGER_MANIFEST,
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698