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

Unified Diff: chrome/browser/profiles/profile_window.cc

Issue 229333002: [Win] Unbreak the user manager tuturial that I broke in r259326. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 8 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 | chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_window.cc
diff --git a/chrome/browser/profiles/profile_window.cc b/chrome/browser/profiles/profile_window.cc
index a3ac27a70f610762a51ad61f7ef7e50c3f69eb7f..f6ed167e2bff00de546b70efa87ad85b2a933baa 100644
--- a/chrome/browser/profiles/profile_window.cc
+++ b/chrome/browser/profiles/profile_window.cc
@@ -271,7 +271,8 @@ void CreateGuestProfileForUserManager(
}
void ShowUserManagerMaybeWithTutorial(Profile* profile) {
- if (!profile) {
+ // Guest users cannot appear in the User Manager, nor display a tutorial.
+ if (!profile || profile->IsGuestSession()) {
chrome::ShowUserManager(base::FilePath());
return;
}
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698