Index: chrome/browser/browser_main.cc |
=================================================================== |
--- chrome/browser/browser_main.cc (revision 91957) |
+++ chrome/browser/browser_main.cc (working copy) |
@@ -900,8 +900,7 @@ |
// should not continue. |
Profile* CreateProfile(const MainFunctionParams& parameters, |
const FilePath& user_data_dir) { |
- const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess(); |
- Profile* profile = browser_command_line.HasSwitch(switches::kMultiProfiles) ? |
+ Profile* profile = ProfileManager::IsMultipleProfilesEnabled() ? |
g_browser_process->profile_manager()->GetLastUsedProfile(user_data_dir) : |
g_browser_process->profile_manager()->GetDefaultProfile(user_data_dir); |
if (profile) |