OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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/chromeos/login/enable_debugging_screen_handler
.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/enable_debugging_screen_handler
.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/prefs/pref_registry_simple.h" | 10 #include "base/prefs/pref_registry_simple.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 if (page_is_ready()) | 84 if (page_is_ready()) |
85 Initialize(); | 85 Initialize(); |
86 } | 86 } |
87 | 87 |
88 void EnableDebuggingScreenHandler::DeclareLocalizedValues( | 88 void EnableDebuggingScreenHandler::DeclareLocalizedValues( |
89 LocalizedValuesBuilder* builder) { | 89 LocalizedValuesBuilder* builder) { |
90 builder->Add("enableDebuggingScreenTitle", | 90 builder->Add("enableDebuggingScreenTitle", |
91 IDS_ENABLE_DEBUGGING_SCREEN_TITLE); | 91 IDS_ENABLE_DEBUGGING_SCREEN_TITLE); |
92 builder->Add("enableDebuggingScreenAccessibleTitle", | 92 builder->Add("enableDebuggingScreenAccessibleTitle", |
93 IDS_ENABLE_DEBUGGING_SCREEN_TITLE); | 93 IDS_ENABLE_DEBUGGING_SCREEN_TITLE); |
94 builder->Add("enableDebuggingScreenIconTitle", IDS_EXCLAMATION_ICON_TITLE); | |
95 builder->Add("enableDebuggingCancelButton", IDS_CANCEL); | 94 builder->Add("enableDebuggingCancelButton", IDS_CANCEL); |
96 builder->Add("enableDebuggingOKButton", IDS_OK); | 95 builder->Add("enableDebuggingOKButton", IDS_OK); |
97 builder->Add("enableDebuggingRemoveButton", | 96 builder->Add("enableDebuggingRemoveButton", |
98 IDS_ENABLE_DEBUGGING_REMOVE_ROOTFS_BUTTON); | 97 IDS_ENABLE_DEBUGGING_REMOVE_ROOTFS_BUTTON); |
99 builder->Add("enableDebuggingEnableButton", | 98 builder->Add("enableDebuggingEnableButton", |
100 IDS_ENABLE_DEBUGGING_ENABLE_BUTTON); | 99 IDS_ENABLE_DEBUGGING_ENABLE_BUTTON); |
101 builder->Add("enableDebuggingRemveRootfsMessage", | 100 builder->Add("enableDebuggingRemveRootfsMessage", |
102 IDS_ENABLE_DEBUGGING_SCREEN_ROOTFS_REMOVE_MSG); | 101 IDS_ENABLE_DEBUGGING_SCREEN_ROOTFS_REMOVE_MSG); |
103 builder->Add("enableDebuggingSetupMessage", | 102 builder->Add("enableDebuggingSetupMessage", |
104 IDS_ENABLE_DEBUGGING_SETUP_MESSAGE); | 103 IDS_ENABLE_DEBUGGING_SETUP_MESSAGE); |
105 builder->Add("enableDebuggingWaitMessage", | 104 builder->Add("enableDebuggingWaitMessage", |
106 IDS_ENABLE_DEBUGGING_WAIT_MESSAGE); | 105 IDS_ENABLE_DEBUGGING_WAIT_MESSAGE); |
107 builder->AddF("enableDebuggingWarningTitle", | 106 builder->AddF("enableDebuggingWarningTitle", |
108 IDS_ENABLE_DEBUGGING_SCREEN_WARNING_MSG, | 107 IDS_ENABLE_DEBUGGING_SCREEN_WARNING_MSG, |
109 IDS_SHORT_PRODUCT_NAME); | 108 IDS_SHORT_PRODUCT_NAME); |
110 builder->AddF("enableDebuggingDoneMessage", | 109 builder->AddF("enableDebuggingDoneMessage", |
111 IDS_ENABLE_DEBUGGING_DONE_MESSAGE, | 110 IDS_ENABLE_DEBUGGING_DONE_MESSAGE, |
112 IDS_SHORT_PRODUCT_NAME); | 111 IDS_SHORT_PRODUCT_NAME); |
| 112 builder->Add("enableDebuggingErrorTitle", |
| 113 IDS_ENABLE_DEBUGGING_ERROR_TITLE); |
113 builder->AddF("enableDebuggingErrorMessage", | 114 builder->AddF("enableDebuggingErrorMessage", |
114 IDS_ENABLE_DEBUGGING_ERROR_MESSAGE, | 115 IDS_ENABLE_DEBUGGING_ERROR_MESSAGE, |
115 IDS_SHORT_PRODUCT_NAME); | 116 IDS_SHORT_PRODUCT_NAME); |
116 builder->Add("enableDebuggingPasswordLabel", | 117 builder->Add("enableDebuggingPasswordLabel", |
117 IDS_ENABLE_DEBUGGING_ROOT_PASSWORD_LABEL); | 118 IDS_ENABLE_DEBUGGING_ROOT_PASSWORD_LABEL); |
118 builder->Add("enableDebuggingConfirmPasswordLabel", | 119 builder->Add("enableDebuggingConfirmPasswordLabel", |
119 IDS_ENABLE_DEBUGGING_CONFIRM_PASSWORD_LABEL); | 120 IDS_ENABLE_DEBUGGING_CONFIRM_PASSWORD_LABEL); |
120 builder->Add("enableDebuggingPasswordLengthNote", | 121 builder->Add("enableDebuggingPasswordLengthNote", |
121 IDS_ENABLE_DEBUGGING_EMPTY_ROOT_PASSWORD_LABEL); | 122 IDS_ENABLE_DEBUGGING_EMPTY_ROOT_PASSWORD_LABEL); |
122 } | 123 } |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 } | 278 } |
278 | 279 |
279 void EnableDebuggingScreenHandler::HandleOnLearnMore() { | 280 void EnableDebuggingScreenHandler::HandleOnLearnMore() { |
280 VLOG(1) << "Trying to view the help article about debugging features."; | 281 VLOG(1) << "Trying to view the help article about debugging features."; |
281 if (!help_app_.get()) | 282 if (!help_app_.get()) |
282 help_app_ = new HelpAppLauncher(GetNativeWindow()); | 283 help_app_ = new HelpAppLauncher(GetNativeWindow()); |
283 help_app_->ShowHelpTopic(HelpAppLauncher::HELP_ENABLE_DEBUGGING); | 284 help_app_->ShowHelpTopic(HelpAppLauncher::HELP_ENABLE_DEBUGGING); |
284 } | 285 } |
285 | 286 |
286 } // namespace chromeos | 287 } // namespace chromeos |
OLD | NEW |