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

Unified Diff: components/pairing/shark_connection_listener.cc

Issue 1958393002: Reset BluetoothHostPairingController in an earlier stage for normal user login flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: components/pairing/shark_connection_listener.cc
diff --git a/components/pairing/shark_connection_listener.cc b/components/pairing/shark_connection_listener.cc
index d74b633c7bd99890fdf20883dae16b243fbf2a00..f7bbb1d985fe6bc17c8e7cbee177aa08930fd432 100644
--- a/components/pairing/shark_connection_listener.cc
+++ b/components/pairing/shark_connection_listener.cc
@@ -26,6 +26,13 @@ SharkConnectionListener::~SharkConnectionListener() {
controller_->RemoveObserver(this);
}
+void SharkConnectionListener::ResetHostPairingController() {
+ if (controller_.get()) {
+ controller_->Reset();
+ controller_->RemoveObserver(this);
+ }
+}
+
void SharkConnectionListener::PairingStageChanged(Stage new_stage) {
if (new_stage == HostPairingController::STAGE_WAITING_FOR_CODE_CONFIRMATION
// Code confirmation stage can be skipped if devices were paired before.

Powered by Google App Engine
This is Rietveld 408576698