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

Side by Side Diff: chrome/browser/chromeos/login/screens/hid_detection_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/hid_detection_screen.h" 5 #include "chrome/browser/chromeos/login/screens/hid_detection_screen.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 input_service_proxy_.RemoveObserver(this); 71 input_service_proxy_.RemoveObserver(this);
72 if (view_) 72 if (view_)
73 view_->Unbind(); 73 view_->Unbind();
74 if (discovery_session_.get()) 74 if (discovery_session_.get())
75 discovery_session_->Stop(base::Bind(&base::DoNothing), 75 discovery_session_->Stop(base::Bind(&base::DoNothing),
76 base::Bind(&base::DoNothing)); 76 base::Bind(&base::DoNothing));
77 if (adapter_.get()) 77 if (adapter_.get())
78 adapter_->RemoveObserver(this); 78 adapter_->RemoveObserver(this);
79 } 79 }
80 80
81 void HIDDetectionScreen::PrepareToShow() {
82 if (view_)
83 view_->PrepareToShow();
84 }
85
86 void HIDDetectionScreen::Show() { 81 void HIDDetectionScreen::Show() {
87 showing_ = true; 82 showing_ = true;
88 GetContextEditor().SetBoolean(kContextKeyNumKeysEnteredExpected, false); 83 GetContextEditor().SetBoolean(kContextKeyNumKeysEnteredExpected, false);
89 SendPointingDeviceNotification(); 84 SendPointingDeviceNotification();
90 SendKeyboardDeviceNotification(); 85 SendKeyboardDeviceNotification();
91 86
92 input_service_proxy_.AddObserver(this); 87 input_service_proxy_.AddObserver(this);
93 UpdateDevices(); 88 UpdateDevices();
94 89
95 if (view_) 90 if (view_)
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 void HIDDetectionScreen::SetPoweredOffError() { 539 void HIDDetectionScreen::SetPoweredOffError() {
545 LOG(ERROR) << "Failed to power off BT adapter"; 540 LOG(ERROR) << "Failed to power off BT adapter";
546 } 541 }
547 542
548 void HIDDetectionScreen::FindDevicesError() { 543 void HIDDetectionScreen::FindDevicesError() {
549 VLOG(1) << "Failed to start Bluetooth discovery."; 544 VLOG(1) << "Failed to start Bluetooth discovery.";
550 } 545 }
551 546
552 547
553 } // namespace chromeos 548 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698