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

Unified Diff: chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm

Issue 129103003: [Mac] Check for guest mode correctly before opening the user manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm
diff --git a/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm b/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm
index 739f3a69bf05e4bfa5dcafc70c719ef9e13c2e6d..7676a7574c2c4bb8503bb59cd94b4cb4e2e2e188 100644
--- a/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm
+++ b/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm
@@ -212,8 +212,7 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
- (IBAction)showUserManager:(id)sender {
// Only non-guest users appear in the User Manager.
base::FilePath profile_path;
- // The button tag indicates whether the active profile is a non-guest profile.
- if ([sender tag]) {
+ if (!isGuestSession_) {
size_t active_index = avatarMenu_->GetActiveProfileIndex();
profile_path = avatarMenu_->GetItemAt(active_index).profile_path;
}
« 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