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

Unified Diff: components/pairing/shark_connection_listener.cc

Issue 1971743004: [Merge to M50] Reset BluetoothHostPairingController in an earlier stage for normal user login flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
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
« no previous file with comments | « components/pairing/shark_connection_listener.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « components/pairing/shark_connection_listener.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698