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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.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/indexeddb/InspectorIndexedDBAgent.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp b/third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp
index 3746b0e94bb99c1a797e651dd8ce26d054918abe..89d723aa2afe31880498a985fd9d25a0957e269c 100644
--- a/third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp
@@ -37,6 +37,7 @@
#include "bindings/core/v8/V8PerIsolateData.h"
#include "core/dom/DOMStringList.h"
#include "core/dom/Document.h"
+#include "core/dom/ExecutionContext.h"
#include "core/events/EventListener.h"
#include "core/frame/LocalFrame.h"
#include "core/inspector/InspectedFrames.h"
@@ -218,7 +219,7 @@
virtual void Execute(IDBDatabase*) = 0;
virtual RequestCallback* GetRequestCallback() = 0;
ExecutionContext* Context() const {
- return script_state_->GetExecutionContext();
+ return ExecutionContext::From(script_state_.Get());
}
ScriptState* GetScriptState() const { return script_state_.Get(); }
@@ -572,7 +573,8 @@
return;
}
- Document* document = ToDocument(script_state_->GetExecutionContext());
+ Document* document =
+ ToDocument(ExecutionContext::From(script_state_.Get()));
if (!document)
return;
ScriptState* script_state = script_state_.Get();

Powered by Google App Engine
This is Rietveld 408576698