Chromium Code Reviews| Index: chrome/browser/browser.cc |
| =================================================================== |
| --- chrome/browser/browser.cc (revision 11594) |
| +++ chrome/browser/browser.cc (working copy) |
| @@ -954,6 +954,9 @@ |
| } |
| void Browser::OpenSelectProfileDialog() { |
| + const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
| + if (!command_line.HasSwitch(switches::kEnableUserDataDirProfiles)) |
| + return; |
| UserMetrics::RecordAction(L"SelectProfile", profile_); |
| window_->ShowSelectProfileDialog(); |
| } |