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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 { "createProfileShortcutCheckbox", IDS_PROFILES_CREATE_SHORTCUT_CHECKBOX }, | 116 { "createProfileShortcutCheckbox", IDS_PROFILES_CREATE_SHORTCUT_CHECKBOX }, |
117 { "createProfileShortcutButton", IDS_PROFILES_CREATE_SHORTCUT_BUTTON }, | 117 { "createProfileShortcutButton", IDS_PROFILES_CREATE_SHORTCUT_BUTTON }, |
118 { "removeProfileShortcutButton", IDS_PROFILES_REMOVE_SHORTCUT_BUTTON }, | 118 { "removeProfileShortcutButton", IDS_PROFILES_REMOVE_SHORTCUT_BUTTON }, |
119 { "importExistingSupervisedUserLink", | 119 { "importExistingSupervisedUserLink", |
120 IDS_IMPORT_EXISTING_LEGACY_SUPERVISED_USER_TITLE }, | 120 IDS_IMPORT_EXISTING_LEGACY_SUPERVISED_USER_TITLE }, |
121 }; | 121 }; |
122 | 122 |
123 RegisterStrings(localized_strings, resources, arraysize(resources)); | 123 RegisterStrings(localized_strings, resources, arraysize(resources)); |
124 RegisterTitle(localized_strings, "manageProfile", IDS_PROFILES_MANAGE_TITLE); | 124 RegisterTitle(localized_strings, "manageProfile", IDS_PROFILES_MANAGE_TITLE); |
125 RegisterTitle(localized_strings, "createProfile", IDS_PROFILES_CREATE_TITLE); | 125 RegisterTitle(localized_strings, "createProfile", IDS_PROFILES_CREATE_TITLE); |
| 126 RegisterTitle(localized_strings, "disconnectAccount", |
| 127 IDS_DISCONNECT_ACCOUNT_TITLE); |
126 | 128 |
127 base::string16 supervised_user_dashboard_url = | 129 base::string16 supervised_user_dashboard_url = |
128 base::ASCIIToUTF16(chrome::kLegacySupervisedUserManagementURL); | 130 base::ASCIIToUTF16(chrome::kLegacySupervisedUserManagementURL); |
129 base::string16 supervised_user_dashboard_display = | 131 base::string16 supervised_user_dashboard_display = |
130 base::ASCIIToUTF16(chrome::kLegacySupervisedUserManagementDisplayURL); | 132 base::ASCIIToUTF16(chrome::kLegacySupervisedUserManagementDisplayURL); |
131 localized_strings->SetString("deleteSupervisedProfileAddendum", | 133 localized_strings->SetString("deleteSupervisedProfileAddendum", |
132 l10n_util::GetStringFUTF16(IDS_PROFILES_DELETE_LEGACY_SUPERVISED_ADDENDUM, | 134 l10n_util::GetStringFUTF16(IDS_PROFILES_DELETE_LEGACY_SUPERVISED_ADDENDUM, |
133 supervised_user_dashboard_url, | 135 supervised_user_dashboard_url, |
134 supervised_user_dashboard_display)); | 136 supervised_user_dashboard_display)); |
135 | 137 |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 | 540 |
539 // Update the UI buttons. | 541 // Update the UI buttons. |
540 OnHasProfileShortcuts(false); | 542 OnHasProfileShortcuts(false); |
541 } | 543 } |
542 | 544 |
543 void ManageProfileHandler::RefreshGaiaPicture(const base::ListValue* args) { | 545 void ManageProfileHandler::RefreshGaiaPicture(const base::ListValue* args) { |
544 profiles::UpdateGaiaProfileInfoIfNeeded(Profile::FromWebUI(web_ui())); | 546 profiles::UpdateGaiaProfileInfoIfNeeded(Profile::FromWebUI(web_ui())); |
545 } | 547 } |
546 | 548 |
547 } // namespace options | 549 } // namespace options |
OLD | NEW |