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

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

Issue 16002004: Added login screen mode for adding users into session. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WebUI test fixed. Created 7 years, 6 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
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/chromeos/login/login_display_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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
OLDNEW
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/chromeos/login/login_display_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698