OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/signin_create_profile_handler.h" | 5 #include "chrome/browser/ui/webui/signin/signin_create_profile_handler.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 CancelProfileRegistration(false); | 57 CancelProfileRegistration(false); |
58 #endif | 58 #endif |
59 } | 59 } |
60 | 60 |
61 void SigninCreateProfileHandler::GetLocalizedValues( | 61 void SigninCreateProfileHandler::GetLocalizedValues( |
62 base::DictionaryValue* localized_strings) { | 62 base::DictionaryValue* localized_strings) { |
63 localized_strings->SetString( | 63 localized_strings->SetString( |
64 "manageProfilesSupervisedSignedInLabel", | 64 "manageProfilesSupervisedSignedInLabel", |
65 l10n_util::GetStringUTF16( | 65 l10n_util::GetStringUTF16( |
66 IDS_PROFILES_CREATE_SUPERVISED_MULTI_SIGNED_IN_LABEL)); | 66 IDS_PROFILES_CREATE_SUPERVISED_MULTI_SIGNED_IN_LABEL)); |
| 67 localized_strings->SetString( |
| 68 "noSignedInUserMessage", |
| 69 l10n_util::GetStringUTF16( |
| 70 IDS_PROFILES_CREATE_SUPERVISED_NO_SIGNED_IN_USER_TEXT)); |
67 localized_strings->SetString("createProfileConfirm", | 71 localized_strings->SetString("createProfileConfirm", |
68 l10n_util::GetStringUTF16(IDS_SAVE)); | 72 l10n_util::GetStringUTF16(IDS_SAVE)); |
69 localized_strings->SetString("learnMore", | 73 localized_strings->SetString("learnMore", |
70 l10n_util::GetStringUTF16(IDS_LEARN_MORE)); | 74 l10n_util::GetStringUTF16(IDS_LEARN_MORE)); |
71 localized_strings->SetString( | 75 localized_strings->SetString( |
72 "selectAnAccount", | 76 "selectAnAccount", |
73 l10n_util::GetStringUTF16( | 77 l10n_util::GetStringUTF16( |
74 IDS_PROFILES_CREATE_SUPERVISED_SENTINEL_MENU_ITEM_TEXT)); | 78 IDS_PROFILES_CREATE_SUPERVISED_SENTINEL_MENU_ITEM_TEXT)); |
75 localized_strings->SetString( | 79 localized_strings->SetString( |
76 "createProfileTitle", | 80 "createProfileTitle", |
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 Profile* profile = g_browser_process->profile_manager()-> | 749 Profile* profile = g_browser_process->profile_manager()-> |
746 GetProfileByPath(profile_file_path); | 750 GetProfileByPath(profile_file_path); |
747 DCHECK(profile); | 751 DCHECK(profile); |
748 | 752 |
749 profiles::FindOrCreateNewWindowForProfile( | 753 profiles::FindOrCreateNewWindowForProfile( |
750 profile, chrome::startup::IS_PROCESS_STARTUP, | 754 profile, chrome::startup::IS_PROCESS_STARTUP, |
751 chrome::startup::IS_FIRST_RUN, false); | 755 chrome::startup::IS_FIRST_RUN, false); |
752 } | 756 } |
753 | 757 |
754 #endif | 758 #endif |
OLD | NEW |