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

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

Issue 11048045: Allow settings dialog to be opened via the app launcher, as a packaged app. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: stray GetSiteInstance in DLOG Created 8 years, 2 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 683a39329a2efa7819b39bd3e019db852f8c14b0..3062461d5cece00f233f7e935aae0a5bcbd0f5d1 100644
--- a/chrome/browser/extensions/component_loader.cc
+++ b/chrome/browser/extensions/component_loader.cc
@@ -372,6 +372,14 @@ void ComponentLoader::AddDefaultComponentExtensions() {
Add(IDR_WEBSTORE_MANIFEST, FilePath(FILE_PATH_LITERAL("web_store")));
+#if defined(OS_WIN)
+ if (CommandLine::ForCurrentProcess()
benwells 2012/10/15 02:04:42 nit: indent like this: if (CommandLine::ForCurre
tapted 2012/10/15 02:32:39 Done.
+ ->HasSwitch(switches::kEnableSettingsApp)) {
+ Add(IDR_SETTINGS_APP_MANIFEST,
+ FilePath(FILE_PATH_LITERAL("settings_app")));
+ }
+#endif
+
#if !defined(OS_CHROMEOS)
// Cloud Print component app. Not required on Chrome OS.
Add(IDR_CLOUDPRINT_MANIFEST, FilePath(FILE_PATH_LITERAL("cloud_print")));

Powered by Google App Engine
This is Rietveld 408576698