| Index: Source/modules/quota/StorageQuota.cpp
|
| diff --git a/Source/modules/quota/StorageQuota.cpp b/Source/modules/quota/StorageQuota.cpp
|
| index 07c00ba263194b21eb50f7c5398695ce29b47c37..6d73063569cc6caee4ba19d84a0d98205e591a32 100644
|
| --- a/Source/modules/quota/StorageQuota.cpp
|
| +++ b/Source/modules/quota/StorageQuota.cpp
|
| @@ -103,19 +103,17 @@ ScriptPromise StorageQuota::queryInfo(ExecutionContext* executionContext, String
|
| return promise;
|
| }
|
|
|
| -ScriptPromise StorageQuota::requestPersistentQuota(ExecutionContext* executionContext, unsigned long long newQuota)
|
| +ScriptPromise StorageQuota::requestPersistentQuota(ScriptState* scriptState, unsigned long long newQuota)
|
| {
|
| - ASSERT(executionContext);
|
| -
|
| - StorageQuotaClient* client = StorageQuotaClient::from(executionContext);
|
| + StorageQuotaClient* client = StorageQuotaClient::from(scriptState->executionContext());
|
| if (!client) {
|
| - RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(executionContext);
|
| + RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState);
|
| ScriptPromise promise = resolver->promise();
|
| resolver->reject(DOMError::create(NotSupportedError));
|
| return promise;
|
| }
|
|
|
| - return client->requestPersistentQuota(executionContext, newQuota);
|
| + return client->requestPersistentQuota(scriptState->executionContext(), newQuota);
|
| }
|
|
|
| StorageQuota::~StorageQuota()
|
|
|