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

Unified Diff: chrome/browser/ui/webui/signin/user_manager_screen_handler.cc

Issue 2325643003: Disables user manager actions only if there is at least one regular profile and they're all locked. (Closed)
Patch Set: Addressed comment Created 4 years, 3 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/profiles/profiles_state.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/webui/signin/user_manager_screen_handler.cc
diff --git a/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc b/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc
index 8c86ccc08454250bea67fff34edc8e7db4cf6e34..a56bbe86f0f4b62d786d9c086bb32c4b41c3cbb3 100644
--- a/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc
+++ b/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc
@@ -493,7 +493,7 @@ void UserManagerScreenHandler::HandleRemoveUser(const base::ListValue* args) {
DCHECK(profiles::IsMultipleProfilesEnabled());
if (switches::IsMaterialDesignUserManager() &&
- profiles::AreAllProfilesLocked()) {
+ profiles::AreAllNonChildNonSupervisedProfilesLocked()) {
web_ui()->CallJavascriptFunctionUnsafe(
"cr.webUIListenerCallback",
base::StringValue("show-error-dialog"),
@@ -531,7 +531,8 @@ void UserManagerScreenHandler::HandleAreAllProfilesLocked(
AllowJavascript();
ResolveJavascriptCallback(
base::StringValue(webui_callback_id),
- base::FundamentalValue(profiles::AreAllProfilesLocked()));
+ base::FundamentalValue(
+ profiles::AreAllNonChildNonSupervisedProfilesLocked()));
}
void UserManagerScreenHandler::HandleLaunchUser(const base::ListValue* args) {
« no previous file with comments | « chrome/browser/profiles/profiles_state.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698