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

Unified Diff: chrome/browser/profiles/profile_manager.cc

Issue 9363010: Add a command-line switch "disable-desktop-shortcuts" to disable profile desktop shortcuts handling (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 10 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
« 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/profiles/profile_manager.cc
===================================================================
--- chrome/browser/profiles/profile_manager.cc (revision 120775)
+++ chrome/browser/profiles/profile_manager.cc (working copy)
@@ -699,7 +699,9 @@
#if defined(OS_WIN)
BrowserDistribution* dist = BrowserDistribution::GetDistribution();
ProfileShortcutManagerWin* shortcut_manager = CreateShortcutManager();
- if (dist && dist->CanCreateDesktopShortcuts() && shortcut_manager) {
+ const CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ if (dist && dist->CanCreateDesktopShortcuts() && shortcut_manager &&
+ !command_line.HasSwitch(switches::kDisableDesktopShortcuts)) {
profile_shortcut_manager_.reset(shortcut_manager);
profile_info_cache_->AddObserver(profile_shortcut_manager_.get());
}
« 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