OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/reset_screen_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/reset_screen_handler.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 builder->Add("resetScreenIconTitle",IDS_RESET_SCREEN_ICON_TITLE); | 173 builder->Add("resetScreenIconTitle",IDS_RESET_SCREEN_ICON_TITLE); |
174 builder->Add("cancelButton", IDS_CANCEL); | 174 builder->Add("cancelButton", IDS_CANCEL); |
175 | 175 |
176 builder->Add("resetWarningDataDetails", | 176 builder->Add("resetWarningDataDetails", |
177 IDS_RESET_SCREEN_WARNING_DETAILS_DATA); | 177 IDS_RESET_SCREEN_WARNING_DETAILS_DATA); |
178 builder->Add("resetRestartMessage", IDS_RESET_SCREEN_RESTART_MSG); | 178 builder->Add("resetRestartMessage", IDS_RESET_SCREEN_RESTART_MSG); |
179 builder->AddF("resetRollbackOption", | 179 builder->AddF("resetRollbackOption", |
180 IDS_RESET_SCREEN_ROLLBACK_OPTION, | 180 IDS_RESET_SCREEN_ROLLBACK_OPTION, |
181 IDS_SHORT_PRODUCT_NAME); | 181 IDS_SHORT_PRODUCT_NAME); |
182 builder->AddF("resetRevertPromise", | 182 builder->AddF("resetRevertPromise", |
183 IDS_RESET_SCREEN_PREPARING_REVERT_PROMISE, | 183 IDS_RESET_SCREEN_PREPARING_REVERT_PROMISE, |
184 IDS_SHORT_PRODUCT_NAME); | 184 IDS_SHORT_PRODUCT_NAME); |
185 builder->AddF("resetRevertSpinnerMessage", | 185 builder->AddF("resetRevertSpinnerMessage", |
186 IDS_RESET_SCREEN_PREPARING_REVERT_SPINNER_MESSAGE, | 186 IDS_RESET_SCREEN_PREPARING_REVERT_SPINNER_MESSAGE, |
187 IDS_SHORT_PRODUCT_NAME); | 187 IDS_SHORT_PRODUCT_NAME); |
188 | 188 |
189 // Different variants of the same UI elements for all dialog cases. | 189 // Different variants of the same UI elements for all dialog cases. |
190 builder->Add("resetButtonReset", IDS_RESET_SCREEN_RESET); | 190 builder->Add("resetButtonReset", IDS_RESET_SCREEN_RESET); |
191 builder->Add("resetButtonRelaunch", IDS_RELAUNCH_BUTTON); | 191 builder->Add("resetButtonRelaunch", IDS_RELAUNCH_BUTTON); |
192 builder->Add("resetButtonPowerwash", IDS_RESET_SCREEN_POWERWASH); | 192 builder->Add("resetButtonPowerwash", IDS_RESET_SCREEN_POWERWASH); |
193 | 193 |
194 builder->AddF( | 194 builder->AddF( |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 base::DictionaryValue params; | 282 base::DictionaryValue params; |
283 params.SetInteger("uiState", kErrorUIStateRollback); | 283 params.SetInteger("uiState", kErrorUIStateRollback); |
284 ShowScreen(OobeUI::kScreenErrorMessage, ¶ms); | 284 ShowScreen(OobeUI::kScreenErrorMessage, ¶ms); |
285 } else if (status.status == | 285 } else if (status.status == |
286 UpdateEngineClient::UPDATE_STATUS_UPDATED_NEED_REBOOT) { | 286 UpdateEngineClient::UPDATE_STATUS_UPDATED_NEED_REBOOT) { |
287 DBusThreadManager::Get()->GetPowerManagerClient()->RequestRestart(); | 287 DBusThreadManager::Get()->GetPowerManagerClient()->RequestRestart(); |
288 } | 288 } |
289 } | 289 } |
290 | 290 |
291 } // namespace chromeos | 291 } // namespace chromeos |
OLD | NEW |