Index: chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.h |
diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.h b/chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.h |
index fd2f3cc1c0c1254dbc22431c8ed391edafc0b263..0e77d7a1e228336c1eb6dea8694cf9deea6ee807 100644 |
--- a/chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.h |
+++ b/chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.h |
@@ -16,12 +16,11 @@ class BluetoothAdapter; |
} // namespace device |
namespace extensions { |
- |
namespace api { |
// Base class for bluetooth extension functions. This class initializes |
-// bluetooth adapter and calls DoWork() implemented by individual bluetooth |
-// extension functions. |
+// bluetooth adapter and calls (on the UI thread) DoWork() implemented by |
+// individual bluetooth extension functions. |
class BluetoothExtensionFunction : public UIThreadExtensionFunction { |
public: |
BluetoothExtensionFunction(); |
@@ -36,14 +35,13 @@ class BluetoothExtensionFunction : public UIThreadExtensionFunction { |
void RunOnAdapterReady(scoped_refptr<device::BluetoothAdapter> adapter); |
// Implemented by individual bluetooth extension functions, called |
- // automatically once |adapter| has been initialized. |
+ // automatically on the UI thread once |adapter| has been initialized. |
virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) = 0; |
DISALLOW_COPY_AND_ASSIGN(BluetoothExtensionFunction); |
}; |
} // namespace api |
- |
} // namespace extensions |
#endif // CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_EXTENSION_FUNCTION_H_ |