| 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 28 matching lines...) Expand all Loading... |
| 39 delegate_(NULL), | 39 delegate_(NULL), |
| 40 show_on_init_(false), | 40 show_on_init_(false), |
| 41 weak_ptr_factory_(this) { | 41 weak_ptr_factory_(this) { |
| 42 } | 42 } |
| 43 | 43 |
| 44 EnableDebuggingScreenHandler::~EnableDebuggingScreenHandler() { | 44 EnableDebuggingScreenHandler::~EnableDebuggingScreenHandler() { |
| 45 if (delegate_) | 45 if (delegate_) |
| 46 delegate_->OnActorDestroyed(this); | 46 delegate_->OnActorDestroyed(this); |
| 47 } | 47 } |
| 48 | 48 |
| 49 void EnableDebuggingScreenHandler::PrepareToShow() { | |
| 50 } | |
| 51 | |
| 52 void EnableDebuggingScreenHandler::ShowWithParams() { | 49 void EnableDebuggingScreenHandler::ShowWithParams() { |
| 53 ShowScreen(OobeScreen::SCREEN_OOBE_ENABLE_DEBUGGING); | 50 ShowScreen(OobeScreen::SCREEN_OOBE_ENABLE_DEBUGGING); |
| 54 | 51 |
| 55 UpdateUIState(UI_STATE_WAIT); | 52 UpdateUIState(UI_STATE_WAIT); |
| 56 | 53 |
| 57 DVLOG(1) << "Showing enable debugging screen."; | 54 DVLOG(1) << "Showing enable debugging screen."; |
| 58 | 55 |
| 59 // Wait for cryptohomed before checking debugd. See http://crbug.com/440506. | 56 // Wait for cryptohomed before checking debugd. See http://crbug.com/440506. |
| 60 chromeos::CryptohomeClient* client = | 57 chromeos::CryptohomeClient* client = |
| 61 chromeos::DBusThreadManager::Get()->GetCryptohomeClient(); | 58 chromeos::DBusThreadManager::Get()->GetCryptohomeClient(); |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 LoginWebDialog* dialog = new LoginWebDialog( | 284 LoginWebDialog* dialog = new LoginWebDialog( |
| 288 Profile::FromWebUI(web_ui()), | 285 Profile::FromWebUI(web_ui()), |
| 289 NULL, | 286 NULL, |
| 290 GetNativeWindow(), | 287 GetNativeWindow(), |
| 291 base::string16(), | 288 base::string16(), |
| 292 data_url); | 289 data_url); |
| 293 dialog->Show(); | 290 dialog->Show(); |
| 294 } | 291 } |
| 295 | 292 |
| 296 } // namespace chromeos | 293 } // namespace chromeos |
| OLD | NEW |