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

Unified Diff: extensions/browser/api/bluetooth/bluetooth_extension_function.h

Issue 1412493002: Bluetooth extension api fixes for WebUI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_543294_bluetooth_idl
Patch Set: Created 5 years, 2 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: extensions/browser/api/bluetooth/bluetooth_extension_function.h
diff --git a/extensions/browser/api/bluetooth/bluetooth_extension_function.h b/extensions/browser/api/bluetooth/bluetooth_extension_function.h
index c09e8c8053f8c8d4ffb5157706081622367b13e8..8aed8ab602dcbc85713b960558c059c5b40dd769 100644
--- a/extensions/browser/api/bluetooth/bluetooth_extension_function.h
+++ b/extensions/browser/api/bluetooth/bluetooth_extension_function.h
@@ -31,6 +31,9 @@ class BluetoothExtensionFunction : public AsyncExtensionFunction {
// ExtensionFunction:
bool RunAsync() override;
+ // Use instead of extension_id() so that this can be run from WebUI.
+ std::string GetExtensionId();
+
private:
void RunOnAdapterReady(scoped_refptr<device::BluetoothAdapter> adapter);

Powered by Google App Engine
This is Rietveld 408576698