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

Unified Diff: chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc

Issue 156493004: Add the ability to show a demo app on OOBE if a machine is derelict. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc
diff --git a/chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc b/chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc
index 62ca6334d3fb948a1f91934ab548e1f67fbbd50a..d1de8428026d6208918deb7b923dc5fdda2ab88f 100644
--- a/chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc
+++ b/chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc
@@ -115,16 +115,12 @@ class KioskProfileLoader::CryptohomedChecker
////////////////////////////////////////////////////////////////////////////////
// KioskProfileLoader
-KioskProfileLoader::KioskProfileLoader(KioskAppManager* kiosk_app_manager,
- const std::string& app_id,
+KioskProfileLoader::KioskProfileLoader(const std::string& app_user_id,
+ bool force_ephemeral,
Delegate* delegate)
- : kiosk_app_manager_(kiosk_app_manager),
- app_id_(app_id),
- delegate_(delegate) {
- KioskAppManager::App app;
- CHECK(kiosk_app_manager_->GetApp(app_id_, &app));
- user_id_ = app.user_id;
-}
+ : user_id_(app_user_id),
+ force_ephemeral_(force_ephemeral),
+ delegate_(delegate) {}
KioskProfileLoader::~KioskProfileLoader() {}
@@ -137,7 +133,7 @@ void KioskProfileLoader::Start() {
void KioskProfileLoader::LoginAsKioskAccount() {
login_performer_.reset(new LoginPerformer(this));
- login_performer_->LoginAsKioskAccount(user_id_);
+ login_performer_->LoginAsKioskAccount(user_id_, force_ephemeral_);
}
void KioskProfileLoader::ReportLaunchResult(KioskAppLaunchError::Error error) {

Powered by Google App Engine
This is Rietveld 408576698