diff options
author | cpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-23 18:11:42 +0000 |
---|---|---|
committer | cpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-23 18:11:42 +0000 |
commit | 0deed5d55ca0995aab1e4f7b1ba83180aed4d9e0 (patch) | |
tree | 04238be899a139d453450baeedbfe0fef511af25 /chrome/browser/profiles/profile_manager.cc | |
parent | bfc6a9b7707a7bbbc1ad282b7792904fbf196d0c (diff) | |
download | chromium_src-0deed5d55ca0995aab1e4f7b1ba83180aed4d9e0.zip chromium_src-0deed5d55ca0995aab1e4f7b1ba83180aed4d9e0.tar.gz chromium_src-0deed5d55ca0995aab1e4f7b1ba83180aed4d9e0.tar.bz2 |
Don't allow multiple profiles in metro mode.
For now. We don't have a good UI/UX to switch among the different profile windows.
BUG=127489
TEST=see bug
Review URL: https://chromiumcodereview.appspot.com/10407087
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138529 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profiles/profile_manager.cc')
-rw-r--r-- | chrome/browser/profiles/profile_manager.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc index 6dd4a11..af458f3 100644 --- a/chrome/browser/profiles/profile_manager.cc +++ b/chrome/browser/profiles/profile_manager.cc @@ -51,6 +51,7 @@ #include "ui/base/l10n/l10n_util.h" #if defined(OS_WIN) +#include "base/win/metro.h" #include "chrome/installer/util/browser_distribution.h" #endif @@ -940,6 +941,10 @@ bool ProfileManager::IsMultipleProfilesEnabled() { if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kMultiProfiles)) return false; #endif +#if defined(OS_WIN) + if (base::win::GetMetroModule()) + return false; +#endif return !ManagedMode::IsInManagedMode(); } |