Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(664)

Unified Diff: chrome/browser/browser_main.cc

Issue 7329034: Multi-Profiles: Enable multi-profiles by default for views ui (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Multi-Profiles: Enable multi-profiles by default for views ui Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/profiles/profile_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/profiles/profile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698