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/app_mode/kiosk_app_launcher.h" | 5 #include "chrome/browser/chromeos/app_mode/kiosk_app_launcher.h" |
6 | 6 |
7 #include "base/chromeos/chromeos_version.h" | 7 #include "base/chromeos/chromeos_version.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 | 248 |
249 LOG(ERROR) << "Failed to remove app cryptohome, erro=" << return_code; | 249 LOG(ERROR) << "Failed to remove app cryptohome, erro=" << return_code; |
250 ReportLaunchResult(KioskAppLaunchError::UNABLE_TO_REMOVE); | 250 ReportLaunchResult(KioskAppLaunchError::UNABLE_TO_REMOVE); |
251 } | 251 } |
252 | 252 |
253 void KioskAppLauncher::OnProfilePrepared(Profile* profile) { | 253 void KioskAppLauncher::OnProfilePrepared(Profile* profile) { |
254 // StartupAppLauncher deletes itself when done. | 254 // StartupAppLauncher deletes itself when done. |
255 (new chromeos::StartupAppLauncher(profile, app_id_))->Start(); | 255 (new chromeos::StartupAppLauncher(profile, app_id_))->Start(); |
256 | 256 |
257 if (LoginDisplayHostImpl::default_host()) | 257 if (LoginDisplayHostImpl::default_host()) |
258 LoginDisplayHostImpl::default_host()->OnSessionStart(); | 258 LoginDisplayHostImpl::default_host()->Finalize(); |
259 UserManager::Get()->SessionStarted(); | 259 UserManager::Get()->SessionStarted(); |
260 | 260 |
261 ReportLaunchResult(KioskAppLaunchError::NONE); | 261 ReportLaunchResult(KioskAppLaunchError::NONE); |
262 } | 262 } |
263 | 263 |
264 } // namespace chromeos | 264 } // namespace chromeos |
OLD | NEW |