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

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

Issue 2583013002: Specify TaskType of posted Task explicitly in Quota API (13) (Closed)
Patch Set: rebase Created 3 years, 11 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
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 dd328cad7de5d6603af7d9e4f1f4078a54aaa606..8406473ffa45a31b46705ec8c66754237ce69a79 100644
--- a/third_party/WebKit/Source/modules/quota/DeprecatedStorageQuota.cpp
+++ b/third_party/WebKit/Source/modules/quota/DeprecatedStorageQuota.cpp
@@ -32,6 +32,7 @@
#include "core/dom/ExceptionCode.h"
#include "core/dom/ExecutionContext.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "modules/quota/DeprecatedStorageQuotaCallbacksImpl.h"
#include "modules/quota/StorageErrorCallback.h"
#include "modules/quota/StorageQuotaClient.h"
@@ -58,7 +59,7 @@ void DeprecatedStorageQuota::queryUsageAndQuota(
if (storageType != WebStorageQuotaTypeTemporary &&
storageType != WebStorageQuotaTypePersistent) {
// Unknown storage type is requested.
- executionContext->postTask(BLINK_FROM_HERE,
+ executionContext->postTask(TaskType::MiscPlatformAPI, BLINK_FROM_HERE,
StorageErrorCallback::createSameThreadTask(
errorCallback, NotSupportedError));
return;
@@ -66,7 +67,7 @@ void DeprecatedStorageQuota::queryUsageAndQuota(
SecurityOrigin* securityOrigin = executionContext->getSecurityOrigin();
if (securityOrigin->isUnique()) {
- executionContext->postTask(BLINK_FROM_HERE,
+ executionContext->postTask(TaskType::MiscPlatformAPI, BLINK_FROM_HERE,
StorageErrorCallback::createSameThreadTask(
errorCallback, NotSupportedError));
return;
@@ -90,7 +91,7 @@ void DeprecatedStorageQuota::requestQuota(ExecutionContext* executionContext,
if (storageType != WebStorageQuotaTypeTemporary &&
storageType != WebStorageQuotaTypePersistent) {
// Unknown storage type is requested.
- executionContext->postTask(BLINK_FROM_HERE,
+ executionContext->postTask(TaskType::MiscPlatformAPI, BLINK_FROM_HERE,
StorageErrorCallback::createSameThreadTask(
errorCallback, NotSupportedError));
return;
@@ -98,7 +99,7 @@ void DeprecatedStorageQuota::requestQuota(ExecutionContext* executionContext,
StorageQuotaClient* client = StorageQuotaClient::from(executionContext);
if (!client) {
- executionContext->postTask(BLINK_FROM_HERE,
+ executionContext->postTask(TaskType::MiscPlatformAPI, BLINK_FROM_HERE,
StorageErrorCallback::createSameThreadTask(
errorCallback, NotSupportedError));
return;

Powered by Google App Engine
This is Rietveld 408576698