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/options/managed_user_create_confirm_handler.h" | 5 #include "chrome/browser/ui/webui/options/managed_user_create_confirm_handler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/value_conversions.h" | 9 #include "base/value_conversions.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 } | 28 } |
29 | 29 |
30 ManagedUserCreateConfirmHandler::~ManagedUserCreateConfirmHandler() { | 30 ManagedUserCreateConfirmHandler::~ManagedUserCreateConfirmHandler() { |
31 } | 31 } |
32 | 32 |
33 void ManagedUserCreateConfirmHandler::GetLocalizedValues( | 33 void ManagedUserCreateConfirmHandler::GetLocalizedValues( |
34 base::DictionaryValue* localized_strings) { | 34 base::DictionaryValue* localized_strings) { |
35 DCHECK(localized_strings); | 35 DCHECK(localized_strings); |
36 | 36 |
37 static OptionsStringResource resources[] = { | 37 static OptionsStringResource resources[] = { |
38 { "managedUserCreatedTitle", IDS_NEW_MANAGED_USER_CREATED_TITLE }, | 38 { "managedUserCreatedTitle", IDS_SUPERVISED_USER_CREATED_TITLE }, |
39 { "managedUserCreatedText", IDS_NEW_MANAGED_USER_CREATED_TEXT }, | 39 { "managedUserCreatedText", IDS_SUPERVISED_USER_CREATED_TEXT }, |
40 { "managedUserCreatedDone", IDS_NEW_MANAGED_USER_CREATED_DONE_BUTTON }, | 40 { "managedUserCreatedDone", IDS_SUPERVISED_USER_CREATED_DONE_BUTTON }, |
41 { "managedUserCreatedSwitch", IDS_NEW_MANAGED_USER_CREATED_SWITCH_BUTTON }, | 41 { "managedUserCreatedSwitch", IDS_SUPERVISED_USER_CREATED_SWITCH_BUTTON }, |
42 }; | 42 }; |
43 | 43 |
44 SigninManagerBase* signin = | 44 SigninManagerBase* signin = |
45 SigninManagerFactory::GetForProfile(Profile::FromWebUI(web_ui())); | 45 SigninManagerFactory::GetForProfile(Profile::FromWebUI(web_ui())); |
46 if (signin) { | 46 if (signin) { |
47 localized_strings->SetString("custodianEmail", | 47 localized_strings->SetString("custodianEmail", |
48 signin->GetAuthenticatedUsername()); | 48 signin->GetAuthenticatedUsername()); |
49 } else { | 49 } else { |
50 localized_strings->SetString("custodianEmail", std::string()); | 50 localized_strings->SetString("custodianEmail", std::string()); |
51 } | 51 } |
(...skipping 30 matching lines...) Expand all Loading... |
82 | 82 |
83 profiles::FindOrCreateNewWindowForProfile( | 83 profiles::FindOrCreateNewWindowForProfile( |
84 profile, | 84 profile, |
85 chrome::startup::IS_PROCESS_STARTUP, | 85 chrome::startup::IS_PROCESS_STARTUP, |
86 chrome::startup::IS_FIRST_RUN, | 86 chrome::startup::IS_FIRST_RUN, |
87 desktop_type, | 87 desktop_type, |
88 false); | 88 false); |
89 } | 89 } |
90 | 90 |
91 } // namespace options | 91 } // namespace options |
OLD | NEW |