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

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

Issue 2656343002: Replace [CallWith=ExecutionContext] with [CallWith=ScriptState] (Closed)
Patch Set: Few more 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 8406473ffa45a31b46705ec8c66754237ce69a79..98d4669772c6ac273c0258bee9d4b371e2003423 100644
--- a/third_party/WebKit/Source/modules/quota/DeprecatedStorageQuota.cpp
+++ b/third_party/WebKit/Source/modules/quota/DeprecatedStorageQuota.cpp
@@ -30,6 +30,7 @@
#include "modules/quota/DeprecatedStorageQuota.h"
+#include "bindings/core/v8/ScriptState.h"
#include "core/dom/ExceptionCode.h"
#include "core/dom/ExecutionContext.h"
#include "core/dom/TaskRunnerHelper.h"
@@ -50,9 +51,10 @@ namespace blink {
DeprecatedStorageQuota::DeprecatedStorageQuota(Type type) : m_type(type) {}
void DeprecatedStorageQuota::queryUsageAndQuota(
- ExecutionContext* executionContext,
+ ScriptState* scriptState,
StorageUsageCallback* successCallback,
StorageErrorCallback* errorCallback) {
+ ExecutionContext* executionContext = scriptState->getExecutionContext();
ASSERT(executionContext);
WebStorageQuotaType storageType = static_cast<WebStorageQuotaType>(m_type);
@@ -81,10 +83,11 @@ void DeprecatedStorageQuota::queryUsageAndQuota(
callbacks);
}
-void DeprecatedStorageQuota::requestQuota(ExecutionContext* executionContext,
+void DeprecatedStorageQuota::requestQuota(ScriptState* scriptState,
unsigned long long newQuotaInBytes,
StorageQuotaCallback* successCallback,
StorageErrorCallback* errorCallback) {
+ ExecutionContext* executionContext = scriptState->getExecutionContext();
ASSERT(executionContext);
WebStorageQuotaType storageType = static_cast<WebStorageQuotaType>(m_type);
@@ -105,7 +108,7 @@ void DeprecatedStorageQuota::requestQuota(ExecutionContext* executionContext,
return;
}
- client->requestQuota(executionContext, storageType, newQuotaInBytes,
+ client->requestQuota(scriptState, storageType, newQuotaInBytes,
successCallback, errorCallback);
}

Powered by Google App Engine
This is Rietveld 408576698