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

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

Issue 2796653003: Move ScriptState::forWorld/ScriptState::forMainWorld (Part 2) (Closed)
Patch Set: Rebase 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 7bc66a96a305bfe698d35313b8479893238b9cab..b243551658f5b2b3760f5cdd69946cd331cd56a3 100644
--- a/third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp
@@ -33,6 +33,7 @@
#include "bindings/core/v8/ExceptionState.h"
#include "bindings/core/v8/ScriptController.h"
#include "bindings/core/v8/ScriptState.h"
+#include "bindings/core/v8/V8Binding.h"
#include "bindings/core/v8/V8PerIsolateData.h"
#include "core/dom/DOMStringList.h"
#include "core/dom/Document.h"
@@ -769,7 +770,7 @@ void InspectorIndexedDBAgent::requestDatabaseNames(
return;
}
- ScriptState* scriptState = ScriptState::forMainWorld(frame);
+ ScriptState* scriptState = toScriptStateForMainWorld(frame);
if (!scriptState) {
requestCallback->sendFailure(Response::InternalError());
return;
@@ -809,7 +810,7 @@ void InspectorIndexedDBAgent::requestDatabase(
return;
}
- ScriptState* scriptState = ScriptState::forMainWorld(frame);
+ ScriptState* scriptState = toScriptStateForMainWorld(frame);
if (!scriptState) {
requestCallback->sendFailure(Response::InternalError());
return;
@@ -853,7 +854,7 @@ void InspectorIndexedDBAgent::requestData(
return;
}
- ScriptState* scriptState = ScriptState::forMainWorld(frame);
+ ScriptState* scriptState = toScriptStateForMainWorld(frame);
if (!scriptState) {
requestCallback->sendFailure(Response::InternalError());
return;
@@ -979,7 +980,7 @@ void InspectorIndexedDBAgent::clearObjectStore(
return;
}
- ScriptState* scriptState = ScriptState::forMainWorld(frame);
+ ScriptState* scriptState = toScriptStateForMainWorld(frame);
if (!scriptState) {
requestCallback->sendFailure(Response::InternalError());
return;
@@ -1010,7 +1011,7 @@ void InspectorIndexedDBAgent::deleteDatabase(
return;
}
- ScriptState* scriptState = ScriptState::forMainWorld(frame);
+ ScriptState* scriptState = toScriptStateForMainWorld(frame);
if (!scriptState) {
requestCallback->sendFailure(Response::InternalError());
return;

Powered by Google App Engine
This is Rietveld 408576698