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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp

Issue 2821443002: Revert of Move ScriptState::GetExecutionContext (Part 5) (Closed)
Patch Set: Revert 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 89d723aa2afe31880498a985fd9d25a0957e269c..3746b0e94bb99c1a797e651dd8ce26d054918abe 100644
--- a/third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp
@@ -37,7 +37,6 @@
#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"
@@ -219,7 +218,7 @@ class ExecutableWithDatabase
virtual void Execute(IDBDatabase*) = 0;
virtual RequestCallback* GetRequestCallback() = 0;
ExecutionContext* Context() const {
- return ExecutionContext::From(script_state_.Get());
+ return script_state_->GetExecutionContext();
}
ScriptState* GetScriptState() const { return script_state_.Get(); }
@@ -573,8 +572,7 @@ class OpenCursorCallback final : public EventListener {
return;
}
- Document* document =
- ToDocument(ExecutionContext::From(script_state_.Get()));
+ Document* document = ToDocument(script_state_->GetExecutionContext());
if (!document)
return;
ScriptState* script_state = script_state_.Get();

Powered by Google App Engine
This is Rietveld 408576698