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

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

Issue 273683006: ScriptPromise should understand the ScriptState from which the ScriptPromise is generated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « Source/modules/quota/StorageQuota.h ('k') | Source/modules/quota/StorageQuota.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« no previous file with comments | « Source/modules/quota/StorageQuota.h ('k') | Source/modules/quota/StorageQuota.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698