| 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/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 175 |
| 176 void KioskProfileLoader::PolicyLoadFailed() { | 176 void KioskProfileLoader::PolicyLoadFailed() { |
| 177 ReportLaunchResult(KioskAppLaunchError::POLICY_LOAD_FAILED); | 177 ReportLaunchResult(KioskAppLaunchError::POLICY_LOAD_FAILED); |
| 178 } | 178 } |
| 179 | 179 |
| 180 void KioskProfileLoader::OnOnlineChecked( | 180 void KioskProfileLoader::OnOnlineChecked( |
| 181 const std::string& email, bool success) { | 181 const std::string& email, bool success) { |
| 182 NOTREACHED(); | 182 NOTREACHED(); |
| 183 } | 183 } |
| 184 | 184 |
| 185 void KioskProfileLoader::OnProfilePrepared(Profile* profile) { | 185 void KioskProfileLoader::OnProfilePrepared(Profile* profile, |
| 186 bool browser_launched) { |
| 186 // This object could be deleted any time after successfully reporting | 187 // This object could be deleted any time after successfully reporting |
| 187 // a profile load, so invalidate the LoginUtils delegate now. | 188 // a profile load, so invalidate the LoginUtils delegate now. |
| 188 LoginUtils::Get()->DelegateDeleted(this); | 189 LoginUtils::Get()->DelegateDeleted(this); |
| 189 | 190 |
| 190 delegate_->OnProfileLoaded(profile); | 191 delegate_->OnProfileLoaded(profile); |
| 191 ReportLaunchResult(KioskAppLaunchError::NONE); | 192 ReportLaunchResult(KioskAppLaunchError::NONE); |
| 192 } | 193 } |
| 193 | 194 |
| 194 } // namespace chromeos | 195 } // namespace chromeos |
| OLD | NEW |