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

Unified Diff: components/pairing/bluetooth_host_pairing_controller.h

Issue 2890383003: Bootstrapping: Send meaningful error code/message from Slave to Master (Closed)
Patch Set: . Created 3 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/bluetooth_host_pairing_controller.h
diff --git a/components/pairing/bluetooth_host_pairing_controller.h b/components/pairing/bluetooth_host_pairing_controller.h
index 9c84a0d3dfa4d3f6340bfc8dc06372a45a90b905..8405ae0e95b86b56ecbd5513bac63f9d7b81b69f 100644
--- a/components/pairing/bluetooth_host_pairing_controller.h
+++ b/components/pairing/bluetooth_host_pairing_controller.h
@@ -74,6 +74,7 @@ class BluetoothHostPairingController
void ChangeStage(Stage new_stage);
void SendHostStatus();
+ void SendErrorCodeAndMessage();
void OnGetAdapter(scoped_refptr<device::BluetoothAdapter> adapter);
void SetName();
@@ -110,6 +111,8 @@ class BluetoothHostPairingController
void OnUpdateStatusChanged(UpdateStatus update_status) override;
void OnEnrollmentStatusChanged(EnrollmentStatus enrollment_status) override;
void SetPermanentId(const std::string& permanent_id) override;
+ void SetErrorCodeAndMessage(int error_code,
+ const std::string& error_message) override;
void Reset() override;
// ProtoDecoder::Observer:
@@ -149,6 +152,9 @@ class BluetoothHostPairingController
std::string controller_device_address_;
bool was_powered_ = false;
+ int error_code_ = 0;
+ std::string error_message_;
+
scoped_refptr<device::BluetoothAdapter> adapter_;
scoped_refptr<device::BluetoothSocket> service_socket_;
scoped_refptr<device::BluetoothSocket> controller_socket_;

Powered by Google App Engine
This is Rietveld 408576698