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

Unified Diff: chrome/browser/signin/chrome_signin_client.cc

Issue 2547083004: Fix Check failure in ProfileManager when force-sign-in is enabled and last used profile is supervis… (Closed)
Patch Set: Created 4 years 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 | components/signin/core/browser/signin_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/chrome_signin_client.cc
diff --git a/chrome/browser/signin/chrome_signin_client.cc b/chrome/browser/signin/chrome_signin_client.cc
index aa2800baad44d2f1c033940e5ea2c49d9125b09a..63d7d7c4f780ee7f15ab9717392da1754ba29389 100644
--- a/chrome/browser/signin/chrome_signin_client.cc
+++ b/chrome/browser/signin/chrome_signin_client.cc
@@ -308,7 +308,7 @@ void ChromeSigninClient::PostSignedIn(const std::string& account_id,
void ChromeSigninClient::PreSignOut(const base::Callback<void()>& sign_out) {
#if !defined(OS_ANDROID) && !defined(OS_CHROMEOS)
if (is_force_signin_enabled_ && !profile_->IsSystemProfile() &&
- !profile_->IsGuestSession()) {
+ !profile_->IsGuestSession() && !profile_->IsSupervised()) {
BrowserList::CloseAllBrowsersWithProfile(
profile_, base::Bind(&ChromeSigninClient::OnCloseBrowsersSuccess,
base::Unretained(this), sign_out),
« no previous file with comments | « no previous file | components/signin/core/browser/signin_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698