summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/browser.cc3
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();
}