Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc

Issue 656283002: [session_manager] Move user session initialization code out of ExistingUserController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 176
177 void KioskProfileLoader::PolicyLoadFailed() { 177 void KioskProfileLoader::PolicyLoadFailed() {
178 ReportLaunchResult(KioskAppLaunchError::POLICY_LOAD_FAILED); 178 ReportLaunchResult(KioskAppLaunchError::POLICY_LOAD_FAILED);
179 } 179 }
180 180
181 void KioskProfileLoader::OnOnlineChecked( 181 void KioskProfileLoader::OnOnlineChecked(
182 const std::string& email, bool success) { 182 const std::string& email, bool success) {
183 NOTREACHED(); 183 NOTREACHED();
184 } 184 }
185 185
186 void KioskProfileLoader::OnProfilePrepared(Profile* profile) { 186 void KioskProfileLoader::OnProfilePrepared(Profile* profile,
187 bool browser_launched) {
187 // This object could be deleted any time after successfully reporting 188 // This object could be deleted any time after successfully reporting
188 // a profile load, so invalidate the LoginUtils delegate now. 189 // a profile load, so invalidate the LoginUtils delegate now.
189 LoginUtils::Get()->DelegateDeleted(this); 190 LoginUtils::Get()->DelegateDeleted(this);
190 191
191 delegate_->OnProfileLoaded(profile); 192 delegate_->OnProfileLoaded(profile);
192 ReportLaunchResult(KioskAppLaunchError::NONE); 193 ReportLaunchResult(KioskAppLaunchError::NONE);
193 } 194 }
194 195
195 } // namespace chromeos 196 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/app_mode/kiosk_profile_loader.h ('k') | chrome/browser/chromeos/login/existing_user_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698