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

Unified Diff: Source/modules/bluetooth/BluetoothDiscovery.cpp

Issue 783423003: Make ScriptPromiseResolver RefCountedWillBeRefCountedGarbageCollected. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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: Source/modules/bluetooth/BluetoothDiscovery.cpp
diff --git a/Source/modules/bluetooth/BluetoothDiscovery.cpp b/Source/modules/bluetooth/BluetoothDiscovery.cpp
index f31848d6de083a01c89d90ed65f53494504314c9..4a8cd17b6fae79273388bc43fcdf35141c0b0761 100644
--- a/Source/modules/bluetooth/BluetoothDiscovery.cpp
+++ b/Source/modules/bluetooth/BluetoothDiscovery.cpp
@@ -23,7 +23,7 @@ ScriptPromise BluetoothDiscovery::requestDevice(ScriptState* scriptState)
if (!webbluetooth)
return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError));
- RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState);
+ RefPtrWillBeRawPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState);
ScriptPromise promise = resolver->promise();
webbluetooth->requestDevice(new CallbackPromiseAdapter<BluetoothDevice, BluetoothError>(resolver));
return promise;
« no previous file with comments | « Source/modules/battery/BatteryManager.cpp ('k') | Source/modules/credentialmanager/CredentialsContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698