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

Unified Diff: chrome/browser/ui/browser_list.cc

Issue 7321011: Multi-Profiles: Add delete profile command (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Multi-Profiles: Add delete profile command 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/ui/browser_list.h ('k') | chrome/browser/ui/cocoa/browser/avatar_button.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_list.cc
===================================================================
--- chrome/browser/ui/browser_list.cc (revision 91776)
+++ chrome/browser/ui/browser_list.cc (working copy)
@@ -421,6 +421,20 @@
}
}
+void BrowserList::CloseAllBrowsersWithProfile(Profile* profile) {
+ BrowserVector browsers_to_close;
+ for (BrowserList::const_iterator i = BrowserList::begin();
+ i != BrowserList::end(); ++i) {
+ if ((*i)->profile() == profile)
+ browsers_to_close.push_back(*i);
+ }
+
+ for (BrowserVector::const_iterator i = browsers_to_close.begin();
+ i != browsers_to_close.end(); ++i) {
+ (*i)->window()->Close();
+ }
+}
+
// static
void BrowserList::AttemptUserExit() {
#if defined(OS_CHROMEOS)
« no previous file with comments | « chrome/browser/ui/browser_list.h ('k') | chrome/browser/ui/cocoa/browser/avatar_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698