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

Unified Diff: third_party/WebKit/Source/modules/quota/DeprecatedStorageInfo.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
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 0fc83cacc897939bd63cdb7dc85ea734a3b1da80..715a428f887dc74e222104ebc70a06236892ce61 100644
--- a/third_party/WebKit/Source/modules/quota/DeprecatedStorageInfo.cpp
+++ b/third_party/WebKit/Source/modules/quota/DeprecatedStorageInfo.cpp
@@ -54,8 +54,7 @@ void DeprecatedStorageInfo::queryUsageAndQuota(
DeprecatedStorageQuota* storageQuota = getStorageQuota(storageType);
if (!storageQuota) {
// Unknown storage type is requested.
- TaskRunnerHelper::get(TaskType::MiscPlatformAPI,
- scriptState->getExecutionContext())
+ TaskRunnerHelper::get(TaskType::MiscPlatformAPI, scriptState)
->postTask(BLINK_FROM_HERE, StorageErrorCallback::createSameThreadTask(
errorCallback, NotSupportedError));
return;
@@ -73,8 +72,7 @@ void DeprecatedStorageInfo::requestQuota(ScriptState* scriptState,
DeprecatedStorageQuota* storageQuota = getStorageQuota(storageType);
if (!storageQuota) {
// Unknown storage type is requested.
- TaskRunnerHelper::get(TaskType::MiscPlatformAPI,
- scriptState->getExecutionContext())
+ TaskRunnerHelper::get(TaskType::MiscPlatformAPI, scriptState)
->postTask(BLINK_FROM_HERE, StorageErrorCallback::createSameThreadTask(
errorCallback, NotSupportedError));
return;

Powered by Google App Engine
This is Rietveld 408576698