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

Side by Side Diff: chrome/browser/chromeos/login/screens/host_pairing_screen.cc

Issue 2566443005: cros: Replace WizardController string constants with OobeScreen values. (Closed)
Patch Set: Address comments Created 3 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/screens/host_pairing_screen.h" 5 #include "chrome/browser/chromeos/login/screens/host_pairing_screen.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/chromeos/login/startup_utils.h" 9 #include "chrome/browser/chromeos/login/startup_utils.h"
10 #include "chrome/browser/chromeos/login/wizard_controller.h" 10 #include "chrome/browser/chromeos/login/wizard_controller.h"
11 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" 11 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
12 #include "chrome/browser/chromeos/policy/enrollment_status_chromeos.h" 12 #include "chrome/browser/chromeos/policy/enrollment_status_chromeos.h"
13 #include "components/pairing/host_pairing_controller.h" 13 #include "components/pairing/host_pairing_controller.h"
14 14
15 namespace chromeos { 15 namespace chromeos {
16 16
17 using namespace host_pairing; 17 using namespace host_pairing;
18 using namespace pairing_chromeos; 18 using namespace pairing_chromeos;
19 19
20 HostPairingScreen::HostPairingScreen( 20 HostPairingScreen::HostPairingScreen(
21 BaseScreenDelegate* base_screen_delegate, 21 BaseScreenDelegate* base_screen_delegate,
22 Delegate* delegate, 22 Delegate* delegate,
23 HostPairingScreenActor* actor, 23 HostPairingScreenActor* actor,
24 pairing_chromeos::HostPairingController* remora_controller) 24 pairing_chromeos::HostPairingController* remora_controller)
25 : BaseScreen(base_screen_delegate, 25 : BaseScreen(base_screen_delegate, OobeScreen::SCREEN_OOBE_HOST_PAIRING),
26 WizardController::kHostPairingScreenName),
27 delegate_(delegate), 26 delegate_(delegate),
28 actor_(actor), 27 actor_(actor),
29 remora_controller_(remora_controller), 28 remora_controller_(remora_controller),
30 current_stage_(HostPairingController::STAGE_NONE), 29 current_stage_(HostPairingController::STAGE_NONE),
31 weak_ptr_factory_(this) { 30 weak_ptr_factory_(this) {
32 actor_->SetDelegate(this); 31 actor_->SetDelegate(this);
33 remora_controller_->AddObserver(this); 32 remora_controller_->AddObserver(this);
34 } 33 }
35 34
36 HostPairingScreen::~HostPairingScreen() { 35 HostPairingScreen::~HostPairingScreen() {
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 } 194 }
196 195
197 void HostPairingScreen::OnAnyEnrollmentError() { 196 void HostPairingScreen::OnAnyEnrollmentError() {
198 enrollment_helper_->ClearAuth(base::Bind(&HostPairingScreen::OnAuthCleared, 197 enrollment_helper_->ClearAuth(base::Bind(&HostPairingScreen::OnAuthCleared,
199 weak_ptr_factory_.GetWeakPtr())); 198 weak_ptr_factory_.GetWeakPtr()));
200 remora_controller_->OnEnrollmentStatusChanged( 199 remora_controller_->OnEnrollmentStatusChanged(
201 HostPairingController::ENROLLMENT_STATUS_FAILURE); 200 HostPairingController::ENROLLMENT_STATUS_FAILURE);
202 } 201 }
203 202
204 } // namespace chromeos 203 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698