diff options
author | cem.kocagil@gmail.com <cem.kocagil@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-08 21:56:50 +0000 |
---|---|---|
committer | cem.kocagil@gmail.com <cem.kocagil@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-08 21:56:50 +0000 |
commit | fae7753433ce0fff8e5f28bedde84f7b164bc422 (patch) | |
tree | 97202dc59f150b226c961603e5594e46189f6666 /chrome/common | |
parent | 954de8fed2ce9bd897dcb991e1527407e74a8494 (diff) | |
download | chromium_src-fae7753433ce0fff8e5f28bedde84f7b164bc422.zip chromium_src-fae7753433ce0fff8e5f28bedde84f7b164bc422.tar.gz chromium_src-fae7753433ce0fff8e5f28bedde84f7b164bc422.tar.bz2 |
Add a command-line switch "disable-desktop-shortcuts" to disable profile desktop shortcuts handling
BUG=110206
TEST=Running chrome on Win with --disable-desktop-shortcuts and adding a new user shouldn't create a desktop shortcut
Review URL: http://codereview.chromium.org/9363010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121063 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/chrome_switches.cc | 6 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index 9ae5be1..21d58a6 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -1246,6 +1246,12 @@ const char kKioskMode[] = "kiosk"; const char kKioskModePrinting[] = "kiosk-printing"; #endif +#if defined(OS_WIN) +// Disables profile desktop shortcuts handling, preventing their creation, +// modification or removal. +const char kDisableDesktopShortcuts[] = "disable-desktop-shortcuts"; +#endif + #if defined(TOOLKIT_VIEWS) // Enables debug paint in views framework. Enabling this causes the damaged // region being painted to flash in red. diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index 14e557b..0a6eaff 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -355,6 +355,10 @@ extern const char kKioskMode[]; extern const char kKioskModePrinting[]; #endif +#if defined(OS_WIN) +extern const char kDisableDesktopShortcuts[]; +#endif + #if defined(TOOLKIT_VIEWS) extern const char kDebugViewsPaint[]; extern const char kTouchDevices[]; |