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

Side by Side Diff: chrome/browser/chromeos/login/login_performer.cc

Issue 205713002: Add a basic demo mode browser test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/login/login_performer.h" 5 #include "chrome/browser/chromeos/login/login_performer.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 return; 292 return;
293 } 293 }
294 294
295 authenticator_ = LoginUtils::Get()->CreateAuthenticator(this); 295 authenticator_ = LoginUtils::Get()->CreateAuthenticator(this);
296 BrowserThread::PostTask( 296 BrowserThread::PostTask(
297 BrowserThread::UI, FROM_HERE, 297 BrowserThread::UI, FROM_HERE,
298 base::Bind(&Authenticator::LoginAsPublicAccount, authenticator_.get(), 298 base::Bind(&Authenticator::LoginAsPublicAccount, authenticator_.get(),
299 username)); 299 username));
300 } 300 }
301 301
302 void LoginPerformer::LoginAsKioskAccount( 302 void LoginPerformer::LoginAsKioskAccount(const std::string& app_user_id,
303 const std::string& app_user_id, bool force_ephemeral) { 303 bool force_guest) {
304 authenticator_ = LoginUtils::Get()->CreateAuthenticator(this); 304 authenticator_ = LoginUtils::Get()->CreateAuthenticator(this);
305 BrowserThread::PostTask( 305 BrowserThread::PostTask(
306 BrowserThread::UI, FROM_HERE, 306 BrowserThread::UI, FROM_HERE,
307 base::Bind(&Authenticator::LoginAsKioskAccount, authenticator_.get(), 307 base::Bind(&Authenticator::LoginAsKioskAccount, authenticator_.get(),
308 app_user_id, force_ephemeral)); 308 app_user_id, force_guest));
309 } 309 }
310 310
311 void LoginPerformer::RecoverEncryptedData(const std::string& old_password) { 311 void LoginPerformer::RecoverEncryptedData(const std::string& old_password) {
312 BrowserThread::PostTask( 312 BrowserThread::PostTask(
313 BrowserThread::UI, FROM_HERE, 313 BrowserThread::UI, FROM_HERE,
314 base::Bind(&Authenticator::RecoverEncryptedData, authenticator_.get(), 314 base::Bind(&Authenticator::RecoverEncryptedData, authenticator_.get(),
315 old_password)); 315 old_password));
316 } 316 }
317 317
318 void LoginPerformer::ResyncEncryptedData() { 318 void LoginPerformer::ResyncEncryptedData() {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 policy::WildcardLoginChecker::Result result) { 365 policy::WildcardLoginChecker::Result result) {
366 if (result == policy::WildcardLoginChecker::RESULT_ALLOWED) { 366 if (result == policy::WildcardLoginChecker::RESULT_ALLOWED) {
367 StartLoginCompletion(); 367 StartLoginCompletion();
368 } else { 368 } else {
369 if (delegate_) 369 if (delegate_)
370 delegate_->WhiteListCheckFailed(user_context_.username); 370 delegate_->WhiteListCheckFailed(user_context_.username);
371 } 371 }
372 } 372 }
373 373
374 } // namespace chromeos 374 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698