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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 explicit ProfileLoader(KioskAppLauncher* launcher) | 106 explicit ProfileLoader(KioskAppLauncher* launcher) |
107 : launcher_(launcher) { | 107 : launcher_(launcher) { |
108 } | 108 } |
109 | 109 |
110 virtual ~ProfileLoader() { | 110 virtual ~ProfileLoader() { |
111 LoginUtils::Get()->DelegateDeleted(this); | 111 LoginUtils::Get()->DelegateDeleted(this); |
112 } | 112 } |
113 | 113 |
114 void Start() { | 114 void Start() { |
115 LoginUtils::Get()->PrepareProfile( | 115 LoginUtils::Get()->PrepareProfile( |
116 GetAppUserNameFromAppId(launcher_->app_id_), | 116 UserCredentials(GetAppUserNameFromAppId(launcher_->app_id_), |
| 117 std::string(), // password |
| 118 std::string()), // auth_code |
117 std::string(), // display email | 119 std::string(), // display email |
118 std::string(), // password | |
119 false, // using_oauth | 120 false, // using_oauth |
120 false, // has_cookies | 121 false, // has_cookies |
121 this); | 122 this); |
122 } | 123 } |
123 | 124 |
124 private: | 125 private: |
125 // LoginUtils::Delegate overrides: | 126 // LoginUtils::Delegate overrides: |
126 virtual void OnProfilePrepared(Profile* profile) OVERRIDE { | 127 virtual void OnProfilePrepared(Profile* profile) OVERRIDE { |
127 launcher_->OnProfilePrepared(profile); | 128 launcher_->OnProfilePrepared(profile); |
128 } | 129 } |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 // StartupAppLauncher deletes itself when done. | 227 // StartupAppLauncher deletes itself when done. |
227 (new chromeos::StartupAppLauncher(profile, app_id_))->Start(); | 228 (new chromeos::StartupAppLauncher(profile, app_id_))->Start(); |
228 | 229 |
229 BaseLoginDisplayHost::default_host()->OnSessionStart(); | 230 BaseLoginDisplayHost::default_host()->OnSessionStart(); |
230 UserManager::Get()->SessionStarted(); | 231 UserManager::Get()->SessionStarted(); |
231 | 232 |
232 ReportLaunchResult(true); | 233 ReportLaunchResult(true); |
233 } | 234 } |
234 | 235 |
235 } // namespace chromeos | 236 } // namespace chromeos |
OLD | NEW |