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_profile_loader.h" | 5 #include "chrome/browser/chromeos/app_mode/kiosk_profile_loader.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/macros.h" |
8 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
9 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
10 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
11 #include "base/sys_info.h" | 12 #include "base/sys_info.h" |
12 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" | 13 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
13 #include "chrome/browser/chromeos/login/auth/chrome_login_performer.h" | 14 #include "chrome/browser/chromeos/login/auth/chrome_login_performer.h" |
14 #include "chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h" | 15 #include "chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h" |
15 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h" | 16 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h" |
16 #include "chrome/browser/chromeos/settings/cros_settings.h" | 17 #include "chrome/browser/chromeos/settings/cros_settings.h" |
17 #include "chrome/browser/lifetime/application_lifetime.h" | 18 #include "chrome/browser/lifetime/application_lifetime.h" |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 bool browser_launched) { | 184 bool browser_launched) { |
184 // This object could be deleted any time after successfully reporting | 185 // This object could be deleted any time after successfully reporting |
185 // a profile load, so invalidate the delegate now. | 186 // a profile load, so invalidate the delegate now. |
186 UserSessionManager::GetInstance()->DelegateDeleted(this); | 187 UserSessionManager::GetInstance()->DelegateDeleted(this); |
187 | 188 |
188 delegate_->OnProfileLoaded(profile); | 189 delegate_->OnProfileLoaded(profile); |
189 ReportLaunchResult(KioskAppLaunchError::NONE); | 190 ReportLaunchResult(KioskAppLaunchError::NONE); |
190 } | 191 } |
191 | 192 |
192 } // namespace chromeos | 193 } // namespace chromeos |
OLD | NEW |