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/values.h" | 10 #include "base/values.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 namespace chromeos { | 35 namespace chromeos { |
36 | 36 |
37 EnableDebuggingScreenHandler::EnableDebuggingScreenHandler() | 37 EnableDebuggingScreenHandler::EnableDebuggingScreenHandler() |
38 : weak_ptr_factory_(this) { | 38 : weak_ptr_factory_(this) { |
39 set_call_js_prefix(kJsScreenPath); | 39 set_call_js_prefix(kJsScreenPath); |
40 } | 40 } |
41 | 41 |
42 EnableDebuggingScreenHandler::~EnableDebuggingScreenHandler() { | 42 EnableDebuggingScreenHandler::~EnableDebuggingScreenHandler() { |
43 if (delegate_) | 43 if (delegate_) |
44 delegate_->OnActorDestroyed(this); | 44 delegate_->OnViewDestroyed(this); |
45 } | 45 } |
46 | 46 |
47 void EnableDebuggingScreenHandler::ShowWithParams() { | 47 void EnableDebuggingScreenHandler::ShowWithParams() { |
48 ShowScreen(OobeScreen::SCREEN_OOBE_ENABLE_DEBUGGING); | 48 ShowScreen(OobeScreen::SCREEN_OOBE_ENABLE_DEBUGGING); |
49 | 49 |
50 UpdateUIState(UI_STATE_WAIT); | 50 UpdateUIState(UI_STATE_WAIT); |
51 | 51 |
52 DVLOG(1) << "Showing enable debugging screen."; | 52 DVLOG(1) << "Showing enable debugging screen."; |
53 | 53 |
54 // Wait for cryptohomed before checking debugd. See http://crbug.com/440506. | 54 // Wait for cryptohomed before checking debugd. See http://crbug.com/440506. |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 LoginWebDialog* dialog = new LoginWebDialog( | 282 LoginWebDialog* dialog = new LoginWebDialog( |
283 Profile::FromWebUI(web_ui()), | 283 Profile::FromWebUI(web_ui()), |
284 NULL, | 284 NULL, |
285 GetNativeWindow(), | 285 GetNativeWindow(), |
286 base::string16(), | 286 base::string16(), |
287 data_url); | 287 data_url); |
288 dialog->Show(); | 288 dialog->Show(); |
289 } | 289 } |
290 | 290 |
291 } // namespace chromeos | 291 } // namespace chromeos |
OLD | NEW |