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

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

Issue 2555783003: cros: Remove unused method (Closed)
Patch Set: Created 4 years 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"
(...skipping 29 matching lines...) Expand all
40 40
41 void HostPairingScreen::CommitContextChanges() { 41 void HostPairingScreen::CommitContextChanges() {
42 if (!context_.HasChanges()) 42 if (!context_.HasChanges())
43 return; 43 return;
44 base::DictionaryValue diff; 44 base::DictionaryValue diff;
45 context_.GetChangesAndReset(&diff); 45 context_.GetChangesAndReset(&diff);
46 if (actor_) 46 if (actor_)
47 actor_->OnContextChanged(diff); 47 actor_->OnContextChanged(diff);
48 } 48 }
49 49
50 void HostPairingScreen::PrepareToShow() {
51 }
52
53 void HostPairingScreen::Show() { 50 void HostPairingScreen::Show() {
54 if (actor_) 51 if (actor_)
55 actor_->Show(); 52 actor_->Show();
56 PairingStageChanged(remora_controller_->GetCurrentStage()); 53 PairingStageChanged(remora_controller_->GetCurrentStage());
57 } 54 }
58 55
59 void HostPairingScreen::Hide() { 56 void HostPairingScreen::Hide() {
60 if (actor_) 57 if (actor_)
61 actor_->Hide(); 58 actor_->Hide();
62 } 59 }
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 } 198 }
202 199
203 void HostPairingScreen::OnAnyEnrollmentError() { 200 void HostPairingScreen::OnAnyEnrollmentError() {
204 enrollment_helper_->ClearAuth(base::Bind(&HostPairingScreen::OnAuthCleared, 201 enrollment_helper_->ClearAuth(base::Bind(&HostPairingScreen::OnAuthCleared,
205 weak_ptr_factory_.GetWeakPtr())); 202 weak_ptr_factory_.GetWeakPtr()));
206 remora_controller_->OnEnrollmentStatusChanged( 203 remora_controller_->OnEnrollmentStatusChanged(
207 HostPairingController::ENROLLMENT_STATUS_FAILURE); 204 HostPairingController::ENROLLMENT_STATUS_FAILURE);
208 } 205 }
209 206
210 } // namespace chromeos 207 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698