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

Side by Side Diff: chrome/browser/ui/webui/options/manage_profile_handler.cc

Issue 350183002: Rename "managed (mode|user)" to "supervised user" (part 5) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/options/manage_profile_handler.h" 5 #include "chrome/browser/ui/webui/options/manage_profile_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/prefs/scoped_user_pref_update.h" 10 #include "base/prefs/scoped_user_pref_update.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void ManageProfileHandler::GetLocalizedValues( 79 void ManageProfileHandler::GetLocalizedValues(
80 base::DictionaryValue* localized_strings) { 80 base::DictionaryValue* localized_strings) {
81 DCHECK(localized_strings); 81 DCHECK(localized_strings);
82 82
83 static OptionsStringResource resources[] = { 83 static OptionsStringResource resources[] = {
84 { "manageProfilesNameLabel", IDS_PROFILES_MANAGE_NAME_LABEL }, 84 { "manageProfilesNameLabel", IDS_PROFILES_MANAGE_NAME_LABEL },
85 { "manageProfilesDuplicateNameError", 85 { "manageProfilesDuplicateNameError",
86 IDS_PROFILES_MANAGE_DUPLICATE_NAME_ERROR }, 86 IDS_PROFILES_MANAGE_DUPLICATE_NAME_ERROR },
87 { "manageProfilesIconLabel", IDS_PROFILES_MANAGE_ICON_LABEL }, 87 { "manageProfilesIconLabel", IDS_PROFILES_MANAGE_ICON_LABEL },
88 { "manageProfilesExistingSupervisedUser", 88 { "manageProfilesExistingSupervisedUser",
89 IDS_PROFILES_CREATE_EXISTING_MANAGED_USER_ERROR }, 89 IDS_PROFILES_CREATE_EXISTING_SUPERVISED_USER_ERROR },
90 { "manageProfilesManagedSignedInLabel", 90 { "manageProfilesManagedSignedInLabel",
91 IDS_PROFILES_CREATE_MANAGED_SIGNED_IN_LABEL }, 91 IDS_PROFILES_CREATE_SUPERVISED_SIGNED_IN_LABEL },
92 { "manageProfilesManagedNotSignedInLabel", 92 { "manageProfilesManagedNotSignedInLabel",
93 IDS_PROFILES_CREATE_MANAGED_NOT_SIGNED_IN_LABEL }, 93 IDS_PROFILES_CREATE_SUPERVISED_NOT_SIGNED_IN_LABEL },
94 { "manageProfilesManagedAccountDetailsOutOfDate", 94 { "manageProfilesManagedAccountDetailsOutOfDate",
95 IDS_PROFILES_CREATE_MANAGED_ACCOUNT_DETAILS_OUT_OF_DATE_LABEL }, 95 IDS_PROFILES_CREATE_SUPERVISED_ACCOUNT_DETAILS_OUT_OF_DATE_LABEL },
96 { "manageProfilesManagedSignInAgainLink", 96 { "manageProfilesManagedSignInAgainLink",
97 IDS_PROFILES_CREATE_MANAGED_ACCOUNT_SIGN_IN_AGAIN_LINK }, 97 IDS_PROFILES_CREATE_SUPERVISED_SIGN_IN_AGAIN_LINK },
98 { "manageProfilesManagedNotSignedInLink", 98 { "manageProfilesManagedNotSignedInLink",
99 IDS_PROFILES_CREATE_MANAGED_NOT_SIGNED_IN_LINK }, 99 IDS_PROFILES_CREATE_SUPERVISED_NOT_SIGNED_IN_LINK },
100 { "deleteProfileTitle", IDS_PROFILES_DELETE_TITLE }, 100 { "deleteProfileTitle", IDS_PROFILES_DELETE_TITLE },
101 { "deleteProfileOK", IDS_PROFILES_DELETE_OK_BUTTON_LABEL }, 101 { "deleteProfileOK", IDS_PROFILES_DELETE_OK_BUTTON_LABEL },
102 { "deleteProfileMessage", IDS_PROFILES_DELETE_MESSAGE }, 102 { "deleteProfileMessage", IDS_PROFILES_DELETE_MESSAGE },
103 { "deleteManagedProfileAddendum", IDS_PROFILES_DELETE_MANAGED_ADDENDUM }, 103 { "deleteManagedProfileAddendum", IDS_PROFILES_DELETE_SUPERVISED_ADDENDUM },
104 { "disconnectManagedProfileTitle", 104 { "disconnectManagedProfileTitle",
105 IDS_PROFILES_DISCONNECT_MANAGED_PROFILE_TITLE }, 105 IDS_PROFILES_DISCONNECT_MANAGED_PROFILE_TITLE },
106 { "disconnectManagedProfileOK", 106 { "disconnectManagedProfileOK",
107 IDS_PROFILES_DISCONNECT_MANAGED_PROFILE_OK_BUTTON_LABEL }, 107 IDS_PROFILES_DISCONNECT_MANAGED_PROFILE_OK_BUTTON_LABEL },
108 { "createProfileTitle", IDS_PROFILES_CREATE_TITLE }, 108 { "createProfileTitle", IDS_PROFILES_CREATE_TITLE },
109 { "createProfileInstructions", IDS_PROFILES_CREATE_INSTRUCTIONS }, 109 { "createProfileInstructions", IDS_PROFILES_CREATE_INSTRUCTIONS },
110 { "createProfileConfirm", IDS_PROFILES_CREATE_CONFIRM }, 110 { "createProfileConfirm", IDS_PROFILES_CREATE_CONFIRM },
111 { "createProfileShortcutCheckbox", IDS_PROFILES_CREATE_SHORTCUT_CHECKBOX }, 111 { "createProfileShortcutCheckbox", IDS_PROFILES_CREATE_SHORTCUT_CHECKBOX },
112 { "createProfileShortcutButton", IDS_PROFILES_CREATE_SHORTCUT_BUTTON }, 112 { "createProfileShortcutButton", IDS_PROFILES_CREATE_SHORTCUT_BUTTON },
113 { "removeProfileShortcutButton", IDS_PROFILES_REMOVE_SHORTCUT_BUTTON }, 113 { "removeProfileShortcutButton", IDS_PROFILES_REMOVE_SHORTCUT_BUTTON },
114 { "importExistingManagedUserLink", 114 { "importExistingManagedUserLink",
115 IDS_PROFILES_IMPORT_EXISTING_MANAGED_USER_LINK }, 115 IDS_PROFILES_IMPORT_EXISTING_SUPERVISED_USER_LINK },
116 { "signInToImportManagedUsers", 116 { "signInToImportManagedUsers",
117 IDS_PROFILES_IMPORT_MANAGED_USER_NOT_SIGNED_IN }, 117 IDS_PROFILES_IMPORT_SUPERVISED_USER_NOT_SIGNED_IN },
118 }; 118 };
119 119
120 RegisterStrings(localized_strings, resources, arraysize(resources)); 120 RegisterStrings(localized_strings, resources, arraysize(resources));
121 RegisterTitle(localized_strings, "manageProfile", 121 RegisterTitle(localized_strings, "manageProfile",
122 IDS_PROFILES_MANAGE_TITLE); 122 IDS_PROFILES_MANAGE_TITLE);
123 RegisterTitle(localized_strings, "createProfile", 123 RegisterTitle(localized_strings, "createProfile",
124 IDS_PROFILES_CREATE_TITLE); 124 IDS_PROFILES_CREATE_TITLE);
125 125
126 localized_strings->SetBoolean("profileShortcutsEnabled", 126 localized_strings->SetBoolean("profileShortcutsEnabled",
127 ProfileShortcutManager::IsFeatureEnabled()); 127 ProfileShortcutManager::IsFeatureEnabled());
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 528
529 // Update the UI buttons. 529 // Update the UI buttons.
530 OnHasProfileShortcuts(false); 530 OnHasProfileShortcuts(false);
531 } 531 }
532 532
533 void ManageProfileHandler::RefreshGaiaPicture(const base::ListValue* args) { 533 void ManageProfileHandler::RefreshGaiaPicture(const base::ListValue* args) {
534 profiles::UpdateGaiaProfilePhotoIfNeeded(Profile::FromWebUI(web_ui())); 534 profiles::UpdateGaiaProfilePhotoIfNeeded(Profile::FromWebUI(web_ui()));
535 } 535 }
536 536
537 } // namespace options 537 } // namespace options
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698