OLD | NEW |
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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 { "createProfileShortcutCheckbox", IDS_PROFILES_CREATE_SHORTCUT_CHECKBOX }, | 121 { "createProfileShortcutCheckbox", IDS_PROFILES_CREATE_SHORTCUT_CHECKBOX }, |
122 { "createProfileShortcutButton", IDS_PROFILES_CREATE_SHORTCUT_BUTTON }, | 122 { "createProfileShortcutButton", IDS_PROFILES_CREATE_SHORTCUT_BUTTON }, |
123 { "removeProfileShortcutButton", IDS_PROFILES_REMOVE_SHORTCUT_BUTTON }, | 123 { "removeProfileShortcutButton", IDS_PROFILES_REMOVE_SHORTCUT_BUTTON }, |
124 { "importExistingSupervisedUserLink", | 124 { "importExistingSupervisedUserLink", |
125 IDS_IMPORT_EXISTING_LEGACY_SUPERVISED_USER_TITLE }, | 125 IDS_IMPORT_EXISTING_LEGACY_SUPERVISED_USER_TITLE }, |
126 }; | 126 }; |
127 | 127 |
128 RegisterStrings(localized_strings, resources, arraysize(resources)); | 128 RegisterStrings(localized_strings, resources, arraysize(resources)); |
129 RegisterTitle(localized_strings, "manageProfile", IDS_PROFILES_MANAGE_TITLE); | 129 RegisterTitle(localized_strings, "manageProfile", IDS_PROFILES_MANAGE_TITLE); |
130 RegisterTitle(localized_strings, "createProfile", IDS_PROFILES_CREATE_TITLE); | 130 RegisterTitle(localized_strings, "createProfile", IDS_PROFILES_CREATE_TITLE); |
| 131 RegisterTitle(localized_strings, "disconnectAccount", |
| 132 IDS_DISCONNECT_ACCOUNT_TITLE); |
131 | 133 |
132 base::string16 supervised_user_dashboard_url = | 134 base::string16 supervised_user_dashboard_url = |
133 base::ASCIIToUTF16(chrome::kLegacySupervisedUserManagementURL); | 135 base::ASCIIToUTF16(chrome::kLegacySupervisedUserManagementURL); |
134 base::string16 supervised_user_dashboard_display = | 136 base::string16 supervised_user_dashboard_display = |
135 base::ASCIIToUTF16(chrome::kLegacySupervisedUserManagementDisplayURL); | 137 base::ASCIIToUTF16(chrome::kLegacySupervisedUserManagementDisplayURL); |
136 localized_strings->SetString("deleteSupervisedProfileAddendum", | 138 localized_strings->SetString("deleteSupervisedProfileAddendum", |
137 l10n_util::GetStringFUTF16(IDS_PROFILES_DELETE_LEGACY_SUPERVISED_ADDENDUM, | 139 l10n_util::GetStringFUTF16(IDS_PROFILES_DELETE_LEGACY_SUPERVISED_ADDENDUM, |
138 supervised_user_dashboard_url, | 140 supervised_user_dashboard_url, |
139 supervised_user_dashboard_display)); | 141 supervised_user_dashboard_display)); |
140 | 142 |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 | 570 |
569 // Update the UI buttons. | 571 // Update the UI buttons. |
570 OnHasProfileShortcuts(false); | 572 OnHasProfileShortcuts(false); |
571 } | 573 } |
572 | 574 |
573 void ManageProfileHandler::RefreshGaiaPicture(const base::ListValue* args) { | 575 void ManageProfileHandler::RefreshGaiaPicture(const base::ListValue* args) { |
574 profiles::UpdateGaiaProfileInfoIfNeeded(Profile::FromWebUI(web_ui())); | 576 profiles::UpdateGaiaProfileInfoIfNeeded(Profile::FromWebUI(web_ui())); |
575 } | 577 } |
576 | 578 |
577 } // namespace options | 579 } // namespace options |
OLD | NEW |