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

Side by Side Diff: chrome/browser/profiles/profile_manager.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/profiles/profile_manager.h ('k') | chrome/browser/sync/sync_ui_util.cc » ('j') | 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 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 void ProfileManager::ScheduleProfileForDeletion(const FilePath& profile_dir) { 559 void ProfileManager::ScheduleProfileForDeletion(const FilePath& profile_dir) {
560 // TODO(sail): Due to bug 88586 we don't delete the profile instance. Once we 560 // TODO(sail): Due to bug 88586 we don't delete the profile instance. Once we
561 // start deleting the profile instance we need to close background apps too. 561 // start deleting the profile instance we need to close background apps too.
562 Profile* profile = GetProfileByPath(profile_dir); 562 Profile* profile = GetProfileByPath(profile_dir);
563 if (profile) 563 if (profile)
564 BrowserList::CloseAllBrowsersWithProfile(profile); 564 BrowserList::CloseAllBrowsersWithProfile(profile);
565 profiles_to_delete_.push_back(profile_dir); 565 profiles_to_delete_.push_back(profile_dir);
566 ProfileInfoCache& cache = GetProfileInfoCache(); 566 ProfileInfoCache& cache = GetProfileInfoCache();
567 cache.DeleteProfileFromCache(profile_dir); 567 cache.DeleteProfileFromCache(profile_dir);
568 } 568 }
569
570 // static
571 bool ProfileManager::IsMultipleProfilesEnabled() {
572 #if defined(TOOLKIT_VIEWS) && !defined(OS_CHROMEOS)
573 return true;
574 #else
575 return CommandLine::ForCurrentProcess()->HasSwitch(switches::kMultiProfiles);
576 #endif
577 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_manager.h ('k') | chrome/browser/sync/sync_ui_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698