| 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/chromeos/login/app_launch_controller.h" | 5 #include "chrome/browser/chromeos/login/app_launch_controller.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/json/json_file_value_serializer.h" | 10 #include "base/json/json_file_value_serializer.h" |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 network_wait_timer_.Stop(); | 322 network_wait_timer_.Stop(); |
| 323 } | 323 } |
| 324 | 324 |
| 325 void AppLaunchController::CleanUp() { | 325 void AppLaunchController::CleanUp() { |
| 326 ClearNetworkWaitTimer(); | 326 ClearNetworkWaitTimer(); |
| 327 kiosk_profile_loader_.reset(); | 327 kiosk_profile_loader_.reset(); |
| 328 startup_app_launcher_.reset(); | 328 startup_app_launcher_.reset(); |
| 329 splash_wait_timer_.Stop(); | 329 splash_wait_timer_.Stop(); |
| 330 | 330 |
| 331 if (host_) | 331 if (host_) |
| 332 host_->Finalize(); | 332 host_->Finalize(base::OnceClosure()); |
| 333 } | 333 } |
| 334 | 334 |
| 335 void AppLaunchController::OnNetworkWaitTimedout() { | 335 void AppLaunchController::OnNetworkWaitTimedout() { |
| 336 DCHECK(waiting_for_network_); | 336 DCHECK(waiting_for_network_); |
| 337 LOG(WARNING) << "OnNetworkWaitTimedout... connection = " | 337 LOG(WARNING) << "OnNetworkWaitTimedout... connection = " |
| 338 << net::NetworkChangeNotifier::GetConnectionType(); | 338 << net::NetworkChangeNotifier::GetConnectionType(); |
| 339 network_wait_timedout_ = true; | 339 network_wait_timedout_ = true; |
| 340 | 340 |
| 341 MaybeShowNetworkConfigureUI(); | 341 MaybeShowNetworkConfigureUI(); |
| 342 | 342 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 KioskAppLaunchError::Save(error); | 512 KioskAppLaunchError::Save(error); |
| 513 chrome::AttemptUserExit(); | 513 chrome::AttemptUserExit(); |
| 514 CleanUp(); | 514 CleanUp(); |
| 515 } | 515 } |
| 516 | 516 |
| 517 bool AppLaunchController::IsShowingNetworkConfigScreen() { | 517 bool AppLaunchController::IsShowingNetworkConfigScreen() { |
| 518 return network_config_requested_; | 518 return network_config_requested_; |
| 519 } | 519 } |
| 520 | 520 |
| 521 } // namespace chromeos | 521 } // namespace chromeos |
| OLD | NEW |