OLD | NEW |
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/managed/locally_managed_user_creation_fl
ow.h" | 5 #include "chrome/browser/chromeos/login/managed/locally_managed_user_creation_fl
ow.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/browser/chromeos/login/base_login_display_host.h" | 9 #include "chrome/browser/chromeos/login/login_display_host_impl.h" |
10 #include "chrome/browser/chromeos/login/managed/locally_managed_user_creation_sc
reen.h" | 10 #include "chrome/browser/chromeos/login/managed/locally_managed_user_creation_sc
reen.h" |
11 #include "chrome/browser/chromeos/login/wizard_controller.h" | 11 #include "chrome/browser/chromeos/login/wizard_controller.h" |
12 | 12 |
13 namespace chromeos { | 13 namespace chromeos { |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 LocallyManagedUserCreationScreen* GetScreen(LoginDisplayHost* host) { | 17 LocallyManagedUserCreationScreen* GetScreen(LoginDisplayHost* host) { |
18 DCHECK(host); | 18 DCHECK(host); |
19 DCHECK(host->GetWizardController()); | 19 DCHECK(host->GetWizardController()); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 void LocallyManagedUserCreationFlow::LaunchExtraSteps( | 74 void LocallyManagedUserCreationFlow::LaunchExtraSteps( |
75 Profile* profile) { | 75 Profile* profile) { |
76 logged_in_ = true; | 76 logged_in_ = true; |
77 if (token_validated_ && logged_in_) | 77 if (token_validated_ && logged_in_) |
78 GetScreen(host())->OnManagerFullyAuthenticated(); | 78 GetScreen(host())->OnManagerFullyAuthenticated(); |
79 else | 79 else |
80 GetScreen(host())->OnManagerCryptohomeAuthenticated(); | 80 GetScreen(host())->OnManagerCryptohomeAuthenticated(); |
81 } | 81 } |
82 | 82 |
83 } // namespace chromeos | 83 } // namespace chromeos |
OLD | NEW |