| 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;
|
|
|