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

Unified Diff: third_party/WebKit/Source/modules/quota/DeprecatedStorageInfo.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/DeprecatedStorageInfo.cpp
diff --git a/third_party/WebKit/Source/modules/quota/DeprecatedStorageInfo.cpp b/third_party/WebKit/Source/modules/quota/DeprecatedStorageInfo.cpp
index 60b3a175d1d9002a27c7ee89aa1830281eeafd8e..23367b36508ab7af91aa5e70702cad6a333df792 100644
--- a/third_party/WebKit/Source/modules/quota/DeprecatedStorageInfo.cpp
+++ b/third_party/WebKit/Source/modules/quota/DeprecatedStorageInfo.cpp
@@ -32,6 +32,7 @@
#include "core/dom/ExceptionCode.h"
#include "core/dom/ExecutionContext.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "modules/quota/DeprecatedStorageQuota.h"
#include "modules/quota/StorageErrorCallback.h"
#include "modules/quota/StorageQuotaCallback.h"
@@ -52,7 +53,7 @@ void DeprecatedStorageInfo::queryUsageAndQuota(
DeprecatedStorageQuota* storageQuota = getStorageQuota(storageType);
if (!storageQuota) {
// Unknown storage type is requested.
- executionContext->postTask(BLINK_FROM_HERE,
+ executionContext->postTask(TaskType::MiscPlatformAPI, BLINK_FROM_HERE,
StorageErrorCallback::createSameThreadTask(
errorCallback, NotSupportedError));
return;
@@ -71,7 +72,7 @@ void DeprecatedStorageInfo::requestQuota(ExecutionContext* executionContext,
DeprecatedStorageQuota* storageQuota = getStorageQuota(storageType);
if (!storageQuota) {
// Unknown storage type is requested.
- 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