| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/signin/user_manager_screen_handler.h" | 5 #include "chrome/browser/ui/webui/signin/user_manager_screen_handler.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 } | 764 } |
| 765 | 765 |
| 766 void UserManagerScreenHandler::GetLocalizedValues( | 766 void UserManagerScreenHandler::GetLocalizedValues( |
| 767 base::DictionaryValue* localized_strings) { | 767 base::DictionaryValue* localized_strings) { |
| 768 // For Control Bar. | 768 // For Control Bar. |
| 769 localized_strings->SetString("signedIn", | 769 localized_strings->SetString("signedIn", |
| 770 l10n_util::GetStringUTF16(IDS_SCREEN_LOCK_ACTIVE_USER)); | 770 l10n_util::GetStringUTF16(IDS_SCREEN_LOCK_ACTIVE_USER)); |
| 771 localized_strings->SetString("addUser", | 771 localized_strings->SetString("addUser", |
| 772 l10n_util::GetStringUTF16(IDS_ADD_USER_BUTTON)); | 772 l10n_util::GetStringUTF16(IDS_ADD_USER_BUTTON)); |
| 773 localized_strings->SetString("cancel", l10n_util::GetStringUTF16(IDS_CANCEL)); | 773 localized_strings->SetString("cancel", l10n_util::GetStringUTF16(IDS_CANCEL)); |
| 774 localized_strings->SetString("browseAsGuest", | 774 localized_strings->SetString( |
| 775 l10n_util::GetStringUTF16(IDS_GO_INCOGNITO_BUTTON)); | 775 "browseAsGuest", l10n_util::GetStringUTF16(IDS_BROWSE_AS_GUEST_BUTTON)); |
| 776 localized_strings->SetString("signOutUser", | 776 localized_strings->SetString("signOutUser", |
| 777 l10n_util::GetStringUTF16(IDS_SCREEN_LOCK_SIGN_OUT)); | 777 l10n_util::GetStringUTF16(IDS_SCREEN_LOCK_SIGN_OUT)); |
| 778 localized_strings->SetString("addSupervisedUser", | 778 localized_strings->SetString("addSupervisedUser", |
| 779 l10n_util::GetStringUTF16(IDS_CREATE_LEGACY_SUPERVISED_USER_MENU_LABEL)); | 779 l10n_util::GetStringUTF16(IDS_CREATE_LEGACY_SUPERVISED_USER_MENU_LABEL)); |
| 780 | 780 |
| 781 // For AccountPickerScreen. | 781 // For AccountPickerScreen. |
| 782 localized_strings->SetString("screenType", "login-add-user"); | 782 localized_strings->SetString("screenType", "login-add-user"); |
| 783 localized_strings->SetString("highlightStrength", "normal"); | 783 localized_strings->SetString("highlightStrength", "normal"); |
| 784 localized_strings->SetString("title", | 784 localized_strings->SetString("title", |
| 785 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)); | 785 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)); |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1056 Profile* profile, Profile::CreateStatus profile_create_status) { | 1056 Profile* profile, Profile::CreateStatus profile_create_status) { |
| 1057 Browser* browser = chrome::FindAnyBrowser(profile, false); | 1057 Browser* browser = chrome::FindAnyBrowser(profile, false); |
| 1058 if (browser && browser->window()) { | 1058 if (browser && browser->window()) { |
| 1059 OnBrowserWindowReady(browser); | 1059 OnBrowserWindowReady(browser); |
| 1060 } else { | 1060 } else { |
| 1061 registrar_.Add(this, | 1061 registrar_.Add(this, |
| 1062 chrome::NOTIFICATION_BROWSER_WINDOW_READY, | 1062 chrome::NOTIFICATION_BROWSER_WINDOW_READY, |
| 1063 content::NotificationService::AllSources()); | 1063 content::NotificationService::AllSources()); |
| 1064 } | 1064 } |
| 1065 } | 1065 } |
| OLD | NEW |