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

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

Issue 257333002: Drive extension functions from ExtensionFunction::Run. The (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment 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.cc
diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc b/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc
index 77128f855e5e43b5f74d27bbf51a9b7b09b4d910..14bff9d6aad235e415c8207ab7a46f8a67534886 100644
--- a/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc
+++ b/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc
@@ -315,7 +315,7 @@ BluetoothAddProfileFunction::BluetoothAddProfileFunction() {}
BluetoothAddProfileFunction::~BluetoothAddProfileFunction() {}
-bool BluetoothAddProfileFunction::RunImpl() {
+bool BluetoothAddProfileFunction::RunAsync() {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
scoped_ptr<AddProfile::Params> params(AddProfile::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get() != NULL);
@@ -474,37 +474,37 @@ void BluetoothConnectFunction::OnErrorCallback(const std::string& error) {
SendResponse(false);
}
-bool BluetoothDisconnectFunction::RunImpl() {
+bool BluetoothDisconnectFunction::RunAsync() {
// TODO(keybuk): Remove.
SetError("Removed. Use chrome.bluetoothSocket.disconnect() instead.");
return false;
}
-bool BluetoothSendFunction::RunImpl() {
+bool BluetoothSendFunction::RunAsync() {
// TODO(keybuk): Remove.
SetError("Removed. Use chrome.bluetoothSocket.send() instead.");
return false;
}
-bool BluetoothUpdateSocketFunction::RunImpl() {
+bool BluetoothUpdateSocketFunction::RunAsync() {
// TODO(keybuk): Remove.
SetError("Removed. Use chrome.bluetoothSocket.update() instead.");
return false;
}
-bool BluetoothSetSocketPausedFunction::RunImpl() {
+bool BluetoothSetSocketPausedFunction::RunAsync() {
// TODO(keybuk): Remove.
SetError("Removed. Use chrome.bluetoothSocket.setPaused() instead.");
return false;
}
-bool BluetoothGetSocketFunction::RunImpl() {
+bool BluetoothGetSocketFunction::RunAsync() {
// TODO(keybuk): Remove.
SetError("Removed. Use chrome.bluetoothSocket.getInfo() instead.");
return false;
}
-bool BluetoothGetSocketsFunction::RunImpl() {
+bool BluetoothGetSocketsFunction::RunAsync() {
// TODO(keybuk): Remove.
SetError("Removed. Use chrome.bluetoothSocket.getSockets() instead.");
return false;

Powered by Google App Engine
This is Rietveld 408576698