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

Unified Diff: chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.cc

Issue 180163009: chrome.bluetooth API improvements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address code review feedback, simplify threading model. Created 6 years, 9 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: chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.cc
index c0791272f0ee6bc252bc986ccb3b6d047f47c4c7..a0174c46985d2009bf4744249dbc3100179a7613 100644
--- a/chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.cc
@@ -397,12 +397,15 @@ void BluetoothOptionsHandler::ConnectError(
ReportError(error_name, address);
}
-void BluetoothOptionsHandler::DisconnectError(const std::string& address) {
+void BluetoothOptionsHandler::DisconnectError(
+ const std::string& address,
+ const std::string& error_message) {
VLOG(1) << "Failed to disconnect from device: " << address;
ReportError("bluetoothDisconnectFailed", address);
}
-void BluetoothOptionsHandler::ForgetError(const std::string& address) {
+void BluetoothOptionsHandler::ForgetError(const std::string& address,
+ const std::string& error_message) {
keybuk 2014/03/27 20:20:07 No error_message parameter
rpaquay 2014/03/27 22:00:01 Done.
VLOG(1) << "Failed to disconnect and unpair device: " << address;
ReportError("bluetoothForgetFailed", address);
}

Powered by Google App Engine
This is Rietveld 408576698