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

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

Issue 603023004: Remove unused User/Users strings from the profiles UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@people-everywhere
Patch Set: rebase onto master Created 6 years, 2 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
« no previous file with comments | « chrome/browser/ui/webui/options/browser_options_handler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 IDS_PROFILES_CREATE_EXISTING_SUPERVISED_USER_ERROR }, 90 IDS_PROFILES_CREATE_EXISTING_SUPERVISED_USER_ERROR },
91 { "manageProfilesSupervisedSignedInLabel", 91 { "manageProfilesSupervisedSignedInLabel",
92 IDS_PROFILES_CREATE_SUPERVISED_SIGNED_IN_LABEL }, 92 IDS_PROFILES_CREATE_SUPERVISED_SIGNED_IN_LABEL },
93 { "manageProfilesSupervisedNotSignedIn", 93 { "manageProfilesSupervisedNotSignedIn",
94 IDS_PROFILES_CREATE_SUPERVISED_NOT_SIGNED_IN_HTML }, 94 IDS_PROFILES_CREATE_SUPERVISED_NOT_SIGNED_IN_HTML },
95 { "manageProfilesSupervisedAccountDetailsOutOfDate", 95 { "manageProfilesSupervisedAccountDetailsOutOfDate",
96 IDS_PROFILES_CREATE_SUPERVISED_ACCOUNT_DETAILS_OUT_OF_DATE_LABEL }, 96 IDS_PROFILES_CREATE_SUPERVISED_ACCOUNT_DETAILS_OUT_OF_DATE_LABEL },
97 { "manageProfilesSupervisedSignInAgainLink", 97 { "manageProfilesSupervisedSignInAgainLink",
98 IDS_PROFILES_CREATE_SUPERVISED_SIGN_IN_AGAIN_LINK }, 98 IDS_PROFILES_CREATE_SUPERVISED_SIGN_IN_AGAIN_LINK },
99 { "manageProfilesConfirm", IDS_SAVE }, 99 { "manageProfilesConfirm", IDS_SAVE },
100 { "deleteProfileTitle", IDS_NEW_PROFILES_DELETE_TITLE }, 100 { "deleteProfileTitle", IDS_PROFILES_DELETE_TITLE },
101 { "deleteProfileOK", IDS_NEW_PROFILES_DELETE_OK_BUTTON_LABEL }, 101 { "deleteProfileOK", IDS_PROFILES_DELETE_OK_BUTTON_LABEL },
102 { "deleteProfileMessage", IDS_NEW_PROFILES_DELETE_MESSAGE }, 102 { "deleteProfileMessage", IDS_PROFILES_DELETE_MESSAGE },
103 { "deleteSupervisedProfileAddendum", 103 { "deleteSupervisedProfileAddendum",
104 IDS_PROFILES_DELETE_SUPERVISED_ADDENDUM }, 104 IDS_PROFILES_DELETE_SUPERVISED_ADDENDUM },
105 { "disconnectManagedProfileTitle", 105 { "disconnectManagedProfileTitle",
106 IDS_PROFILES_DISCONNECT_MANAGED_PROFILE_TITLE }, 106 IDS_PROFILES_DISCONNECT_MANAGED_PROFILE_TITLE },
107 { "disconnectManagedProfileOK", 107 { "disconnectManagedProfileOK",
108 IDS_PROFILES_DISCONNECT_MANAGED_PROFILE_OK_BUTTON_LABEL }, 108 IDS_PROFILES_DISCONNECT_MANAGED_PROFILE_OK_BUTTON_LABEL },
109 { "createProfileTitle", IDS_NEW_PROFILES_CREATE_TITLE }, 109 { "createProfileTitle", IDS_PROFILES_CREATE_TITLE },
110 { "createProfileInstructions", IDS_PROFILES_CREATE_INSTRUCTIONS }, 110 { "createProfileInstructions", IDS_PROFILES_CREATE_INSTRUCTIONS },
111 { "createProfileConfirm", IDS_ADD }, 111 { "createProfileConfirm", IDS_ADD },
112 { "createProfileShortcutCheckbox", IDS_PROFILES_CREATE_SHORTCUT_CHECKBOX }, 112 { "createProfileShortcutCheckbox", IDS_PROFILES_CREATE_SHORTCUT_CHECKBOX },
113 { "createProfileShortcutButton", IDS_PROFILES_CREATE_SHORTCUT_BUTTON }, 113 { "createProfileShortcutButton", IDS_PROFILES_CREATE_SHORTCUT_BUTTON },
114 { "removeProfileShortcutButton", IDS_PROFILES_REMOVE_SHORTCUT_BUTTON }, 114 { "removeProfileShortcutButton", IDS_PROFILES_REMOVE_SHORTCUT_BUTTON },
115 { "importExistingSupervisedUserLink", 115 { "importExistingSupervisedUserLink",
116 IDS_PROFILES_IMPORT_EXISTING_SUPERVISED_USER_LINK }, 116 IDS_PROFILES_IMPORT_EXISTING_SUPERVISED_USER_LINK },
117 }; 117 };
118 118
119 RegisterStrings(localized_strings, resources, arraysize(resources)); 119 RegisterStrings(localized_strings, resources, arraysize(resources));
120 RegisterTitle(localized_strings, "manageProfile", 120 RegisterTitle(localized_strings, "manageProfile", IDS_PROFILES_MANAGE_TITLE);
121 IDS_NEW_PROFILES_MANAGE_TITLE); 121 RegisterTitle(localized_strings, "createProfile", IDS_PROFILES_CREATE_TITLE);
122 RegisterTitle(localized_strings, "createProfile",
123 IDS_NEW_PROFILES_CREATE_TITLE);
124 122
125 localized_strings->SetBoolean("profileShortcutsEnabled", 123 localized_strings->SetBoolean("profileShortcutsEnabled",
126 ProfileShortcutManager::IsFeatureEnabled()); 124 ProfileShortcutManager::IsFeatureEnabled());
127 125
128 GenerateSignedinUserSpecificStrings(localized_strings); 126 GenerateSignedinUserSpecificStrings(localized_strings);
129 } 127 }
130 128
131 void ManageProfileHandler::InitializeHandler() { 129 void ManageProfileHandler::InitializeHandler() {
132 registrar_.Add(this, chrome::NOTIFICATION_PROFILE_CACHED_INFO_CHANGED, 130 registrar_.Add(this, chrome::NOTIFICATION_PROFILE_CACHED_INFO_CHANGED,
133 content::NotificationService::AllSources()); 131 content::NotificationService::AllSources());
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 527
530 // Update the UI buttons. 528 // Update the UI buttons.
531 OnHasProfileShortcuts(false); 529 OnHasProfileShortcuts(false);
532 } 530 }
533 531
534 void ManageProfileHandler::RefreshGaiaPicture(const base::ListValue* args) { 532 void ManageProfileHandler::RefreshGaiaPicture(const base::ListValue* args) {
535 profiles::UpdateGaiaProfilePhotoIfNeeded(Profile::FromWebUI(web_ui())); 533 profiles::UpdateGaiaProfilePhotoIfNeeded(Profile::FromWebUI(web_ui()));
536 } 534 }
537 535
538 } // namespace options 536 } // namespace options
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/browser_options_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698