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

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

Issue 2700753002: Replace ExecutionContextTask with WTF::Closure in StorageErrorCallback (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 | « no previous file | third_party/WebKit/Source/modules/quota/DeprecatedStorageQuota.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/quota/DeprecatedStorageInfo.cpp
diff --git a/third_party/WebKit/Source/modules/quota/DeprecatedStorageInfo.cpp b/third_party/WebKit/Source/modules/quota/DeprecatedStorageInfo.cpp
index ed923d45e7306a60257b5b87f6dab2878ee0d471..0fc83cacc897939bd63cdb7dc85ea734a3b1da80 100644
--- a/third_party/WebKit/Source/modules/quota/DeprecatedStorageInfo.cpp
+++ b/third_party/WebKit/Source/modules/quota/DeprecatedStorageInfo.cpp
@@ -37,6 +37,7 @@
#include "modules/quota/StorageErrorCallback.h"
#include "modules/quota/StorageQuotaCallback.h"
#include "modules/quota/StorageUsageCallback.h"
+#include "platform/WebTaskRunner.h"
#include "public/platform/WebTraceLocation.h"
namespace blink {
@@ -53,10 +54,10 @@ void DeprecatedStorageInfo::queryUsageAndQuota(
DeprecatedStorageQuota* storageQuota = getStorageQuota(storageType);
if (!storageQuota) {
// Unknown storage type is requested.
- scriptState->getExecutionContext()->postTask(
- TaskType::MiscPlatformAPI, BLINK_FROM_HERE,
- StorageErrorCallback::createSameThreadTask(errorCallback,
- NotSupportedError));
+ TaskRunnerHelper::get(TaskType::MiscPlatformAPI,
+ scriptState->getExecutionContext())
+ ->postTask(BLINK_FROM_HERE, StorageErrorCallback::createSameThreadTask(
+ errorCallback, NotSupportedError));
return;
}
storageQuota->queryUsageAndQuota(scriptState, successCallback, errorCallback);
@@ -72,10 +73,10 @@ void DeprecatedStorageInfo::requestQuota(ScriptState* scriptState,
DeprecatedStorageQuota* storageQuota = getStorageQuota(storageType);
if (!storageQuota) {
// Unknown storage type is requested.
- scriptState->getExecutionContext()->postTask(
- TaskType::MiscPlatformAPI, BLINK_FROM_HERE,
- StorageErrorCallback::createSameThreadTask(errorCallback,
- NotSupportedError));
+ TaskRunnerHelper::get(TaskType::MiscPlatformAPI,
+ scriptState->getExecutionContext())
+ ->postTask(BLINK_FROM_HERE, StorageErrorCallback::createSameThreadTask(
+ errorCallback, NotSupportedError));
return;
}
storageQuota->requestQuota(scriptState, newQuotaInBytes, successCallback,
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/quota/DeprecatedStorageQuota.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698