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

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

Issue 6821075: Chrome-side lockbox bindings (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: CL RC1. Created 9 years, 8 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/existing_user_controller.h" 5 #include "chrome/browser/chromeos/login/existing_user_controller.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 void ExistingUserController::OnStartEnterpriseEnrollment() { 237 void ExistingUserController::OnStartEnterpriseEnrollment() {
238 CommandLine* command_line = CommandLine::ForCurrentProcess(); 238 CommandLine* command_line = CommandLine::ForCurrentProcess();
239 if (command_line->HasSwitch(switches::kEnableDevicePolicy)) { 239 if (command_line->HasSwitch(switches::kEnableDevicePolicy)) {
240 ownership_checker_.reset(new OwnershipStatusChecker(NewCallback( 240 ownership_checker_.reset(new OwnershipStatusChecker(NewCallback(
241 this, &ExistingUserController::OnEnrollmentOwnershipCheckCompleted))); 241 this, &ExistingUserController::OnEnrollmentOwnershipCheckCompleted)));
242 } 242 }
243 } 243 }
244 244
245 void ExistingUserController::OnEnrollmentOwnershipCheckCompleted( 245 void ExistingUserController::OnEnrollmentOwnershipCheckCompleted(
246 OwnershipService::Status status) { 246 OwnershipService::Status status) {
247 if (status == OwnershipService::OWNERSHIP_NONE) { 247 if (status == OwnershipService::OWNERSHIP_NONE ||
248 status == OwnershipService::OWNERSHIP_ENTERPRISE) {
248 host_->StartWizard(WizardController::kEnterpriseEnrollmentScreenName, 249 host_->StartWizard(WizardController::kEnterpriseEnrollmentScreenName,
249 NULL, GURL()); 250 NULL, GURL());
250 login_display_->OnFadeOut(); 251 login_display_->OnFadeOut();
251 } 252 }
252 ownership_checker_.reset(); 253 ownership_checker_.reset();
253 } 254 }
254 255
255 //////////////////////////////////////////////////////////////////////////////// 256 ////////////////////////////////////////////////////////////////////////////////
256 // ExistingUserController, LoginPerformer::Delegate implementation: 257 // ExistingUserController, LoginPerformer::Delegate implementation:
257 // 258 //
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 help_topic_id = login_performer_->login_timed_out() ? 482 help_topic_id = login_performer_->login_timed_out() ?
482 HelpAppLauncher::HELP_CANT_ACCESS_ACCOUNT_OFFLINE : 483 HelpAppLauncher::HELP_CANT_ACCESS_ACCOUNT_OFFLINE :
483 HelpAppLauncher::HELP_CANT_ACCESS_ACCOUNT; 484 HelpAppLauncher::HELP_CANT_ACCESS_ACCOUNT;
484 break; 485 break;
485 } 486 }
486 487
487 login_display_->ShowError(error_id, num_login_attempts_, help_topic_id); 488 login_display_->ShowError(error_id, num_login_attempts_, help_topic_id);
488 } 489 }
489 490
490 } // namespace chromeos 491 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698