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

Unified Diff: third_party/WebKit/Source/modules/quota/DeprecatedStorageQuota.cpp

Issue 2701153002: Pass ScriptState directly to TaskRunnerHelper::get() (Closed)
Patch Set: Created 3 years, 10 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 | « third_party/WebKit/Source/modules/quota/DeprecatedStorageInfo.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/quota/DeprecatedStorageQuota.cpp
diff --git a/third_party/WebKit/Source/modules/quota/DeprecatedStorageQuota.cpp b/third_party/WebKit/Source/modules/quota/DeprecatedStorageQuota.cpp
index f24868aba465289e3d478b9f9de0dc8f04264206..ac254304248d1a11e54892041f028b13d4b3033e 100644
--- a/third_party/WebKit/Source/modules/quota/DeprecatedStorageQuota.cpp
+++ b/third_party/WebKit/Source/modules/quota/DeprecatedStorageQuota.cpp
@@ -62,7 +62,7 @@ void DeprecatedStorageQuota::queryUsageAndQuota(
if (storageType != WebStorageQuotaTypeTemporary &&
storageType != WebStorageQuotaTypePersistent) {
// Unknown storage type is requested.
- TaskRunnerHelper::get(TaskType::MiscPlatformAPI, executionContext)
+ TaskRunnerHelper::get(TaskType::MiscPlatformAPI, scriptState)
->postTask(BLINK_FROM_HERE, StorageErrorCallback::createSameThreadTask(
errorCallback, NotSupportedError));
return;
@@ -70,7 +70,7 @@ void DeprecatedStorageQuota::queryUsageAndQuota(
SecurityOrigin* securityOrigin = executionContext->getSecurityOrigin();
if (securityOrigin->isUnique()) {
- TaskRunnerHelper::get(TaskType::MiscPlatformAPI, executionContext)
+ TaskRunnerHelper::get(TaskType::MiscPlatformAPI, scriptState)
->postTask(BLINK_FROM_HERE, StorageErrorCallback::createSameThreadTask(
errorCallback, NotSupportedError));
return;
@@ -95,7 +95,7 @@ void DeprecatedStorageQuota::requestQuota(ScriptState* scriptState,
if (storageType != WebStorageQuotaTypeTemporary &&
storageType != WebStorageQuotaTypePersistent) {
// Unknown storage type is requested.
- TaskRunnerHelper::get(TaskType::MiscPlatformAPI, executionContext)
+ TaskRunnerHelper::get(TaskType::MiscPlatformAPI, scriptState)
->postTask(BLINK_FROM_HERE, StorageErrorCallback::createSameThreadTask(
errorCallback, NotSupportedError));
return;
@@ -103,7 +103,7 @@ void DeprecatedStorageQuota::requestQuota(ScriptState* scriptState,
StorageQuotaClient* client = StorageQuotaClient::from(executionContext);
if (!client) {
- TaskRunnerHelper::get(TaskType::MiscPlatformAPI, executionContext)
+ TaskRunnerHelper::get(TaskType::MiscPlatformAPI, scriptState)
->postTask(BLINK_FROM_HERE, StorageErrorCallback::createSameThreadTask(
errorCallback, NotSupportedError));
return;
« no previous file with comments | « third_party/WebKit/Source/modules/quota/DeprecatedStorageInfo.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698