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

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

Issue 297513008: Decrease call sites of ScriptState::current() (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 6d73063569cc6caee4ba19d84a0d98205e591a32..3e02345dc750404b7c0e45ef1f3aeb28de7a8a42 100644
--- a/Source/modules/quota/StorageQuota.cpp
+++ b/Source/modules/quota/StorageQuota.cpp
@@ -84,14 +84,12 @@ Vector<String> StorageQuota::supportedTypes() const
return types;
}
-ScriptPromise StorageQuota::queryInfo(ExecutionContext* executionContext, String type)
+ScriptPromise StorageQuota::queryInfo(ScriptState* scriptState, String type)
{
- ASSERT(executionContext);
-
- RefPtr<ScriptPromiseResolverWithContext> resolver = ScriptPromiseResolverWithContext::create(ScriptState::current(toIsolate(executionContext)));
+ RefPtr<ScriptPromiseResolverWithContext> resolver = ScriptPromiseResolverWithContext::create(scriptState);
ScriptPromise promise = resolver->promise();
- SecurityOrigin* securityOrigin = executionContext->securityOrigin();
+ SecurityOrigin* securityOrigin = scriptState->executionContext()->securityOrigin();
if (securityOrigin->isUnique()) {
resolver->reject(DOMError::create(NotSupportedError));
return promise;
« 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