| 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_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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 109   explicit ProfileLoader(KioskAppLauncher* launcher) | 109   explicit ProfileLoader(KioskAppLauncher* launcher) | 
| 110       : launcher_(launcher) { | 110       : launcher_(launcher) { | 
| 111   } | 111   } | 
| 112 | 112 | 
| 113   virtual ~ProfileLoader() { | 113   virtual ~ProfileLoader() { | 
| 114     LoginUtils::Get()->DelegateDeleted(this); | 114     LoginUtils::Get()->DelegateDeleted(this); | 
| 115   } | 115   } | 
| 116 | 116 | 
| 117   void Start() { | 117   void Start() { | 
| 118     LoginUtils::Get()->PrepareProfile( | 118     LoginUtils::Get()->PrepareProfile( | 
| 119         GetAppUserNameFromAppId(launcher_->app_id_), | 119         UserCredentials(GetAppUserNameFromAppId(launcher_->app_id_), | 
|  | 120                         std::string(),   // password | 
|  | 121                         std::string()),  // auth_code | 
| 120         std::string(),  // display email | 122         std::string(),  // display email | 
| 121         std::string(),  // password |  | 
| 122         false,  // using_oauth | 123         false,  // using_oauth | 
| 123         false,  // has_cookies | 124         false,  // has_cookies | 
| 124         this); | 125         this); | 
| 125   } | 126   } | 
| 126 | 127 | 
| 127  private: | 128  private: | 
| 128   // LoginUtils::Delegate overrides: | 129   // LoginUtils::Delegate overrides: | 
| 129   virtual void OnProfilePrepared(Profile* profile) OVERRIDE { | 130   virtual void OnProfilePrepared(Profile* profile) OVERRIDE { | 
| 130     launcher_->OnProfilePrepared(profile); | 131     launcher_->OnProfilePrepared(profile); | 
| 131   } | 132   } | 
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 231   (new chromeos::StartupAppLauncher(profile, app_id_))->Start(); | 232   (new chromeos::StartupAppLauncher(profile, app_id_))->Start(); | 
| 232 | 233 | 
| 233   if (BaseLoginDisplayHost::default_host()) | 234   if (BaseLoginDisplayHost::default_host()) | 
| 234     BaseLoginDisplayHost::default_host()->OnSessionStart(); | 235     BaseLoginDisplayHost::default_host()->OnSessionStart(); | 
| 235   UserManager::Get()->SessionStarted(); | 236   UserManager::Get()->SessionStarted(); | 
| 236 | 237 | 
| 237   ReportLaunchResult(KioskAppLaunchError::NONE); | 238   ReportLaunchResult(KioskAppLaunchError::NONE); | 
| 238 } | 239 } | 
| 239 | 240 | 
| 240 }  // namespace chromeos | 241 }  // namespace chromeos | 
| OLD | NEW | 
|---|