| 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,
|
|
|