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

Side by Side Diff: chrome/browser/profiles/profile_manager.cc

Issue 7832007: Multi-Profiles: Put multi-profiles behind a flag on Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <set> 5 #include <set>
6 6
7 #include "chrome/browser/profiles/profile_manager.h" 7 #include "chrome/browser/profiles/profile_manager.h"
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 Profile* profile = GetProfileByPath(profile_dir); 566 Profile* profile = GetProfileByPath(profile_dir);
567 if (profile) 567 if (profile)
568 BrowserList::CloseAllBrowsersWithProfile(profile); 568 BrowserList::CloseAllBrowsersWithProfile(profile);
569 profiles_to_delete_.push_back(profile_dir); 569 profiles_to_delete_.push_back(profile_dir);
570 ProfileInfoCache& cache = GetProfileInfoCache(); 570 ProfileInfoCache& cache = GetProfileInfoCache();
571 cache.DeleteProfileFromCache(profile_dir); 571 cache.DeleteProfileFromCache(profile_dir);
572 } 572 }
573 573
574 // static 574 // static
575 bool ProfileManager::IsMultipleProfilesEnabled() { 575 bool ProfileManager::IsMultipleProfilesEnabled() {
576 #if defined(TOOLKIT_VIEWS) && !defined(OS_CHROMEOS)
577 return true;
578 #endif
579 return CommandLine::ForCurrentProcess()->HasSwitch(switches::kMultiProfiles); 576 return CommandLine::ForCurrentProcess()->HasSwitch(switches::kMultiProfiles);
580 } 577 }
581 578
582 ProfileManagerWithoutInit::ProfileManagerWithoutInit( 579 ProfileManagerWithoutInit::ProfileManagerWithoutInit(
583 const FilePath& user_data_dir) : ProfileManager(user_data_dir) { 580 const FilePath& user_data_dir) : ProfileManager(user_data_dir) {
584 } 581 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698