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

Unified Diff: chrome/browser/extensions/api/bluetooth/bluetooth_api.h

Issue 257333002: Drive extension functions from ExtensionFunction::Run. The (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: appshell Created 6 years, 8 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/extensions/api/bluetooth/bluetooth_api.h
diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_api.h b/chrome/browser/extensions/api/bluetooth/bluetooth_api.h
index 8cfa295c5e24e4fd4efc645aaccadd16c1c3f5c2..be5341815615ef31676c63c158bd5d22ca9a39ad 100644
--- a/chrome/browser/extensions/api/bluetooth/bluetooth_api.h
+++ b/chrome/browser/extensions/api/bluetooth/bluetooth_api.h
@@ -114,15 +114,15 @@ class BluetoothSocketEventDispatcher;
// Base class for methods dealing with BluetoothSocketApi and
// ApiResourceManager<BluetoothSocketApi>.
-class BluetoothSocketApiFunction : public UIThreadExtensionFunction {
+class BluetoothSocketApiFunction : public AsyncExtensionFunction {
public:
BluetoothSocketApiFunction();
protected:
virtual ~BluetoothSocketApiFunction();
- // ExtensionFunction::RunImpl()
- virtual bool RunImpl() OVERRIDE;
+ // ExtensionFunction::RunAsync()
+ virtual bool RunAsync() OVERRIDE;
bool PrePrepare();
bool Respond();
@@ -174,7 +174,7 @@ class BluetoothGetDeviceFunction : public BluetoothExtensionFunction {
virtual ~BluetoothGetDeviceFunction();
};
-class BluetoothAddProfileFunction : public UIThreadExtensionFunction {
+class BluetoothAddProfileFunction : public AsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("bluetooth.addProfile", BLUETOOTH_ADDPROFILE)
@@ -182,7 +182,7 @@ class BluetoothAddProfileFunction : public UIThreadExtensionFunction {
protected:
virtual ~BluetoothAddProfileFunction();
- virtual bool RunImpl() OVERRIDE;
+ virtual bool RunAsync() OVERRIDE;
virtual void RegisterProfile(
const device::BluetoothProfile::Options& options,

Powered by Google App Engine
This is Rietveld 408576698