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

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

Issue 2815313002: Reland of Move ScriptState::GetExecutionContext (Part 5) (Closed)
Patch Set: Created 3 years, 8 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 ed0f0e4f94f0af9b65690b455622ea94a2d5559f..fd66c2e5e0a27cac992a4f1fc30e4ee53c14b96a 100644
--- a/third_party/WebKit/Source/modules/quota/DeprecatedStorageQuota.cpp
+++ b/third_party/WebKit/Source/modules/quota/DeprecatedStorageQuota.cpp
@@ -55,7 +55,7 @@
ScriptState* script_state,
StorageUsageCallback* success_callback,
StorageErrorCallback* error_callback) {
- ExecutionContext* execution_context = script_state->GetExecutionContext();
+ ExecutionContext* execution_context = ExecutionContext::From(script_state);
DCHECK(execution_context);
WebStorageQuotaType storage_type = static_cast<WebStorageQuotaType>(type_);
@@ -89,7 +89,7 @@
unsigned long long new_quota_in_bytes,
StorageQuotaCallback* success_callback,
StorageErrorCallback* error_callback) {
- ExecutionContext* execution_context = script_state->GetExecutionContext();
+ ExecutionContext* execution_context = ExecutionContext::From(script_state);
DCHECK(execution_context);
WebStorageQuotaType storage_type = static_cast<WebStorageQuotaType>(type_);

Powered by Google App Engine
This is Rietveld 408576698