| Index: chrome/browser/profiles/profile_shortcut_manager_win.cc
|
| ===================================================================
|
| --- chrome/browser/profiles/profile_shortcut_manager_win.cc (revision 175282)
|
| +++ chrome/browser/profiles/profile_shortcut_manager_win.cc (working copy)
|
| @@ -8,6 +8,7 @@
|
| #include <vector>
|
|
|
| #include "base/bind.h"
|
| +#include "base/command_line.h"
|
| #include "base/file_util.h"
|
| #include "base/path_service.h"
|
| #include "base/string16.h"
|
| @@ -307,7 +308,8 @@
|
|
|
| // static
|
| bool ProfileShortcutManager::IsFeatureEnabled() {
|
| - return BrowserDistribution::GetDistribution()->CanCreateDesktopShortcuts();
|
| + return BrowserDistribution::GetDistribution()->CanCreateDesktopShortcuts() &&
|
| + !CommandLine::ForCurrentProcess()->HasSwitch(switches::kUserDataDir);
|
| }
|
|
|
| // static
|
|
|