diff options
author | munjal@chromium.org <munjal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-09 19:37:36 +0000 |
---|---|---|
committer | munjal@chromium.org <munjal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-09 19:37:36 +0000 |
commit | 12a6f036f3859f88b439dba009172f5c1dd03dc9 (patch) | |
tree | 57b6dff933a9437e3faf6292a2b9e84a3c756a4f /chrome | |
parent | 9fc4f92a0149a1dfe50cb85da2dd9eba5b7d8483 (diff) | |
download | chromium_src-12a6f036f3859f88b439dba009172f5c1dd03dc9.zip chromium_src-12a6f036f3859f88b439dba009172f5c1dd03dc9.tar.gz chromium_src-12a6f036f3859f88b439dba009172f5c1dd03dc9.tar.bz2 |
Fixes issue 8435 (http://code.google.com/p/chromium/issues/detail?id=8435)
Review URL: http://codereview.chromium.org/39303
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11274 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/browser.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index 4e28196..13c202f 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -954,6 +954,9 @@ void Browser::OpenTaskManager() { } void Browser::OpenSelectProfileDialog() { + const CommandLine& command_line = *CommandLine::ForCurrentProcess(); + if (!command_line.HasSwitch(switches::kEnableUserDataDirProfiles)) + return; UserMetrics::RecordAction(L"SelectProfile", profile_); window_->ShowSelectProfileDialog(); } |