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

Side by Side Diff: chrome/browser/chromeos/login/screens/controller_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/controller_pairing_screen.h" 5 #include "chrome/browser/chromeos/login/screens/controller_pairing_screen.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/chromeos/login/wizard_controller.h" 10 #include "chrome/browser/chromeos/login/wizard_controller.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 47
48 bool ControllerPairingScreen::ExpectStageIs(Stage stage) const { 48 bool ControllerPairingScreen::ExpectStageIs(Stage stage) const {
49 DCHECK(stage == current_stage_); 49 DCHECK(stage == current_stage_);
50 if (current_stage_ != stage) 50 if (current_stage_ != stage)
51 LOG(ERROR) << "Incorrect stage. Expected: " << stage 51 LOG(ERROR) << "Incorrect stage. Expected: " << stage
52 << ", current stage: " << current_stage_; 52 << ", current stage: " << current_stage_;
53 return stage == current_stage_; 53 return stage == current_stage_;
54 } 54 }
55 55
56 void ControllerPairingScreen::PrepareToShow() {
57 }
58
59 void ControllerPairingScreen::Show() { 56 void ControllerPairingScreen::Show() {
60 if (actor_) 57 if (actor_)
61 actor_->Show(); 58 actor_->Show();
62 shark_controller_->StartPairing(); 59 shark_controller_->StartPairing();
63 } 60 }
64 61
65 void ControllerPairingScreen::Hide() { 62 void ControllerPairingScreen::Hide() {
66 if (actor_) 63 if (actor_)
67 actor_->Hide(); 64 actor_->Hide();
68 } 65 }
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 ++key) { 212 ++key) {
216 if (*key == kContextKeySelectedDevice) { 213 if (*key == kContextKeySelectedDevice) {
217 context_.SetBoolean(kContextKeyControlsDisabled, 214 context_.SetBoolean(kContextKeyControlsDisabled,
218 context_.GetString(*key).empty()); 215 context_.GetString(*key).empty());
219 CommitContextChanges(); 216 CommitContextChanges();
220 } 217 }
221 } 218 }
222 } 219 }
223 220
224 } // namespace chromeos 221 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698