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

Unified Diff: chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_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_low_energy/bluetooth_low_energy_api.h
diff --git a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.h b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.h
index ad55f61791d00320d9a8ac6c4e10a8890b78cf96..59f1428a4b6117db14e6f6fe2695e33c4487c1b7 100644
--- a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.h
+++ b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.h
@@ -53,7 +53,7 @@ namespace api {
// Base class for bluetoothLowEnergy API functions. This class handles some of
// the common logic involved in all API functions, such as checking for
// platform support and returning the correct error.
-class BluetoothLowEnergyExtensionFunction : public UIThreadExtensionFunction {
+class BluetoothLowEnergyExtensionFunction : public AsyncExtensionFunction {
public:
BluetoothLowEnergyExtensionFunction();
@@ -61,10 +61,10 @@ class BluetoothLowEnergyExtensionFunction : public UIThreadExtensionFunction {
virtual ~BluetoothLowEnergyExtensionFunction();
// ExtensionFunction override.
- virtual bool RunImpl() OVERRIDE;
+ virtual bool RunAsync() OVERRIDE;
// Implemented by individual bluetoothLowEnergy extension functions to perform
- // the body of the function. This invoked asynchonously after RunImpl after
+ // the body of the function. This invoked asynchonously after RunAsync after
// the BluetoothLowEnergyEventRouter has obtained a handle on the
// BluetoothAdapter.
virtual bool DoWork() = 0;

Powered by Google App Engine
This is Rietveld 408576698