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

Unified Diff: third_party/WebKit/Source/core/fileapi/URLFileAPI.cpp

Issue 2811863002: Move ScriptState::GetExecutionContext (Part 4) (Closed)
Patch Set: Fix Document.cpp 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/core/fileapi/URLFileAPI.cpp
diff --git a/third_party/WebKit/Source/core/fileapi/URLFileAPI.cpp b/third_party/WebKit/Source/core/fileapi/URLFileAPI.cpp
index 1e58a3f034eb9c9adc29c37f775e288e10a438cc..271a2db3886c10b766d826b3aae66949ca990a5a 100644
--- a/third_party/WebKit/Source/core/fileapi/URLFileAPI.cpp
+++ b/third_party/WebKit/Source/core/fileapi/URLFileAPI.cpp
@@ -19,7 +19,7 @@ String URLFileAPI::createObjectURL(ScriptState* script_state,
Blob* blob,
ExceptionState& exception_state) {
DCHECK(blob);
- ExecutionContext* execution_context = script_state->GetExecutionContext();
+ ExecutionContext* execution_context = ExecutionContext::From(script_state);
DCHECK(execution_context);
if (blob->isClosed()) {
@@ -38,7 +38,7 @@ String URLFileAPI::createObjectURL(ScriptState* script_state,
// static
void URLFileAPI::revokeObjectURL(ScriptState* script_state,
const String& url_string) {
- ExecutionContext* execution_context = script_state->GetExecutionContext();
+ ExecutionContext* execution_context = ExecutionContext::From(script_state);
DCHECK(execution_context);
KURL url(KURL(), url_string);
« no previous file with comments | « third_party/WebKit/Source/core/fileapi/FileReaderSync.cpp ('k') | third_party/WebKit/Source/core/frame/History.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698