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

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

Issue 307483002: Desktop user manager: Adjustments for supervised users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + RTL friendly Created 6 years, 7 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/ui/webui/chromeos/login/signin_screen_handler.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 36814344aa670175a570b161cec292242a8a51d3..2274e504d463b7806ad674b31e9fad831c712d58 100644
--- a/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc
+++ b/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc
@@ -21,6 +21,7 @@
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/singleton_tabs.h"
+#include "chrome/common/url_constants.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui.h"
#include "google_apis/gaia/gaia_auth_fetcher.h"
@@ -507,8 +508,11 @@ void UserManagerScreenHandler::GetLocalizedValues(
localized_strings->SetString("removeUserWarningButtonTitle",
l10n_util::GetStringUTF16(IDS_LOGIN_POD_USER_REMOVE_WARNING_BUTTON));
localized_strings->SetString("removeUserWarningText",
- l10n_util::GetStringUTF16(
- IDS_LOGIN_POD_USER_REMOVE_WARNING));
+ l10n_util::GetStringUTF16(IDS_LOGIN_POD_USER_REMOVE_WARNING));
+ localized_strings->SetString("removeSupervisedUserWarningText",
+ l10n_util::GetStringFUTF16(
+ IDS_LOGIN_POD_SUPERVISED_USER_REMOVE_WARNING,
+ base::UTF8ToUTF16(chrome::kSupervisedUserManagementDisplayURL)));
// Strings needed for the User Manager tutorial slides.
localized_strings->SetString("tutorialStart",
@@ -589,7 +593,8 @@ void UserManagerScreenHandler::SendUserList() {
kKeyDisplayName, info_cache.GetNameOfProfileAtIndex(i));
profile_value->SetString(kKeyProfilePath, profile_path.MaybeAsASCII());
profile_value->SetBoolean(kKeyPublicAccount, false);
- profile_value->SetBoolean(kKeyLocallyManagedUser, false);
+ profile_value->SetBoolean(
+ kKeyLocallyManagedUser, info_cache.ProfileIsManagedAtIndex(i));
profile_value->SetBoolean(kKeySignedIn, is_active_user);
profile_value->SetBoolean(
kKeyNeedsSignin, info_cache.ProfileIsSigninRequiredAtIndex(i));
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698