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

Unified Diff: chrome/browser/ui/views/profiles/profile_chooser_view.cc

Issue 471763008: Nicely handle OnBeforeUnloads with guest and lock mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: working browser closing and lock included Created 6 years, 4 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
« chrome/browser/ui/browser_list.cc ('K') | « chrome/browser/ui/browser_list.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/profiles/profile_chooser_view.cc
diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view.cc b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
index 752dc6637e0fd729c821d827bb97efd71134d594..19a1fe44fa3200842df9c8ee3e6b49974d806af0 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
@@ -707,7 +707,6 @@ void ProfileChooserView::ButtonPressed(views::Button* sender,
if (sender == users_button_) {
// If this is a guest session, also close all the guest browser windows.
if (browser_->profile()->IsGuestSession()) {
Peter Kasting 2014/08/26 20:26:15 Nit: {} no longer necessary here
Mike Lerman 2014/08/27 14:11:39 Bye bye braces! Thanks!
- chrome::ShowUserManager(base::FilePath());
profiles::CloseGuestProfileWindows();
} else {
chrome::ShowUserManager(browser_->profile()->GetPath());
« chrome/browser/ui/browser_list.cc ('K') | « chrome/browser/ui/browser_list.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698