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

Unified Diff: device/bluetooth/bluetooth_device.h

Issue 180163009: chrome.bluetooth API improvements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address code review feedback. 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: device/bluetooth/bluetooth_device.h
diff --git a/device/bluetooth/bluetooth_device.h b/device/bluetooth/bluetooth_device.h
index cb1e7ec6994f4ad565b5c5d2a36e9f0d795079ac..8beef1ff9636b8e9147cc0016a90c52a3280cbbe 100644
--- a/device/bluetooth/bluetooth_device.h
+++ b/device/bluetooth/bluetooth_device.h
@@ -11,6 +11,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_vector.h"
#include "base/strings/string16.h"
+#include "net/base/net_log.h"
namespace device {
@@ -240,7 +241,7 @@ class BluetoothDevice {
// The ErrorCallback is used for methods that can fail in which case it
// is called, in the success case the callback is simply not called.
- typedef base::Callback<void()> ErrorCallback;
+ typedef base::Callback<void(const std::string&)> ErrorCallback;
keybuk 2014/03/20 01:21:56 What are the possible values of this string? Is th
rpaquay 2014/03/20 18:21:11 The intent is to provide a descriptive error messa
keybuk 2014/03/20 18:38:40 Okay, is the policy that those are always English?
rpaquay 2014/03/25 20:06:10 Yeah, the message are always English, and platform
// The ConnectErrorCallback is used for methods that can fail with an error,
// passed back as an error code argument to this callback.

Powered by Google App Engine
This is Rietveld 408576698