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

Unified Diff: Source/modules/quota/StorageQuota.cpp

Issue 1233173002: Have ScriptPromiseResolver on the Oilpan heap always. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix webusb ScriptPromiseResolver usage Created 5 years, 4 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: Source/modules/quota/StorageQuota.cpp
diff --git a/Source/modules/quota/StorageQuota.cpp b/Source/modules/quota/StorageQuota.cpp
index 7c98ac84b65119b10483d08ae4fdeaa2fd11cf38..a4044dbb0b9bf9b42246c12e38b69c572027dbad 100644
--- a/Source/modules/quota/StorageQuota.cpp
+++ b/Source/modules/quota/StorageQuota.cpp
@@ -84,7 +84,7 @@ Vector<String> StorageQuota::supportedTypes() const
ScriptPromise StorageQuota::queryInfo(ScriptState* scriptState, String type)
{
- RefPtrWillBeRawPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState);
+ ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState);
ScriptPromise promise = resolver->promise();
SecurityOrigin* securityOrigin = scriptState->executionContext()->securityOrigin();
@@ -103,7 +103,7 @@ ScriptPromise StorageQuota::requestPersistentQuota(ScriptState* scriptState, uns
{
StorageQuotaClient* client = StorageQuotaClient::from(scriptState->executionContext());
if (!client) {
- RefPtrWillBeRawPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState);
+ ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState);
ScriptPromise promise = resolver->promise();
resolver->reject(DOMError::create(NotSupportedError));
return promise;
« no previous file with comments | « Source/modules/push_messaging/PushSubscriptionCallbacks.cpp ('k') | Source/modules/quota/StorageQuotaCallbacksImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698