| 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 "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "base/value_conversions.h" | 10 #include "base/value_conversions.h" |
| (...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 l10n_util::GetStringUTF16(IDS_SCREEN_LOCK_ACTIVE_USER)); | 613 l10n_util::GetStringUTF16(IDS_SCREEN_LOCK_ACTIVE_USER)); |
| 614 localized_strings->SetString("signinButton", | 614 localized_strings->SetString("signinButton", |
| 615 l10n_util::GetStringUTF16(IDS_LOGIN_BUTTON)); | 615 l10n_util::GetStringUTF16(IDS_LOGIN_BUTTON)); |
| 616 localized_strings->SetString("addUser", | 616 localized_strings->SetString("addUser", |
| 617 l10n_util::GetStringUTF16(IDS_ADD_USER_BUTTON)); | 617 l10n_util::GetStringUTF16(IDS_ADD_USER_BUTTON)); |
| 618 localized_strings->SetString("cancel", l10n_util::GetStringUTF16(IDS_CANCEL)); | 618 localized_strings->SetString("cancel", l10n_util::GetStringUTF16(IDS_CANCEL)); |
| 619 localized_strings->SetString("browseAsGuest", | 619 localized_strings->SetString("browseAsGuest", |
| 620 l10n_util::GetStringUTF16(IDS_GO_INCOGNITO_BUTTON)); | 620 l10n_util::GetStringUTF16(IDS_GO_INCOGNITO_BUTTON)); |
| 621 localized_strings->SetString("signOutUser", | 621 localized_strings->SetString("signOutUser", |
| 622 l10n_util::GetStringUTF16(IDS_SCREEN_LOCK_SIGN_OUT)); | 622 l10n_util::GetStringUTF16(IDS_SCREEN_LOCK_SIGN_OUT)); |
| 623 localized_strings->SetString("addSupervisedUser", |
| 624 l10n_util::GetStringUTF16(IDS_CREATE_SUPERVISED_USER_MENU_LABEL)); |
| 623 | 625 |
| 624 // For AccountPickerScreen. | 626 // For AccountPickerScreen. |
| 625 localized_strings->SetString("screenType", "login-add-user"); | 627 localized_strings->SetString("screenType", "login-add-user"); |
| 626 localized_strings->SetString("highlightStrength", "normal"); | 628 localized_strings->SetString("highlightStrength", "normal"); |
| 627 localized_strings->SetString("title", | 629 localized_strings->SetString("title", |
| 628 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)); | 630 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)); |
| 629 localized_strings->SetString("passwordHint", | 631 localized_strings->SetString("passwordHint", |
| 630 l10n_util::GetStringUTF16(IDS_LOGIN_POD_EMPTY_PASSWORD_TEXT)); | 632 l10n_util::GetStringUTF16(IDS_LOGIN_POD_EMPTY_PASSWORD_TEXT)); |
| 631 localized_strings->SetString("signingIn", | 633 localized_strings->SetString("signingIn", |
| 632 l10n_util::GetStringUTF16(IDS_LOGIN_POD_SIGNING_IN)); | 634 l10n_util::GetStringUTF16(IDS_LOGIN_POD_SIGNING_IN)); |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 833 Profile* profile, Profile::CreateStatus profile_create_status) { | 835 Profile* profile, Profile::CreateStatus profile_create_status) { |
| 834 Browser* browser = chrome::FindAnyBrowser(profile, false, desktop_type_); | 836 Browser* browser = chrome::FindAnyBrowser(profile, false, desktop_type_); |
| 835 if (browser && browser->window()) { | 837 if (browser && browser->window()) { |
| 836 OnBrowserWindowReady(browser); | 838 OnBrowserWindowReady(browser); |
| 837 } else { | 839 } else { |
| 838 registrar_.Add(this, | 840 registrar_.Add(this, |
| 839 chrome::NOTIFICATION_BROWSER_WINDOW_READY, | 841 chrome::NOTIFICATION_BROWSER_WINDOW_READY, |
| 840 content::NotificationService::AllSources()); | 842 content::NotificationService::AllSources()); |
| 841 } | 843 } |
| 842 } | 844 } |
| OLD | NEW |