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

Unified Diff: extensions/browser/api/bluetooth_socket/bluetooth_socket_api.cc

Issue 2017113002: [Extensions] DCHECK that ExtensionFunctions respond (and only once) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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_socket/bluetooth_socket_api.cc
diff --git a/extensions/browser/api/bluetooth_socket/bluetooth_socket_api.cc b/extensions/browser/api/bluetooth_socket/bluetooth_socket_api.cc
index ac1f41f76d54e301821857390995b16cdcebdc80..cd3bd1c452e3f7661141dd6c58b24e1735efdea1 100644
--- a/extensions/browser/api/bluetooth_socket/bluetooth_socket_api.cc
+++ b/extensions/browser/api/bluetooth_socket/bluetooth_socket_api.cc
@@ -204,7 +204,7 @@ void BluetoothSocketCreateFunction::Work() {
bluetooth_socket::CreateInfo create_info;
create_info.socket_id = AddSocket(socket);
results_ = bluetooth_socket::Create::Results::Create(create_info);
- AsyncWorkCompleted();
+ // AsyncWorkCompleted is called by AsyncWorkStart().
}
BluetoothSocketUpdateFunction::BluetoothSocketUpdateFunction() {}

Powered by Google App Engine
This is Rietveld 408576698