| Index: third_party/WebKit/Source/bindings/modules/v8/custom/V8IDBObserverCustom.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/modules/v8/custom/V8IDBObserverCustom.cpp b/third_party/WebKit/Source/bindings/modules/v8/custom/V8IDBObserverCustom.cpp
|
| index f4d8fdf45fa315025f75477a972f6a5899f98ea4..e82160cc587341cd37f9d3a222706bddea1ab300 100644
|
| --- a/third_party/WebKit/Source/bindings/modules/v8/custom/V8IDBObserverCustom.cpp
|
| +++ b/third_party/WebKit/Source/bindings/modules/v8/custom/V8IDBObserverCustom.cpp
|
| @@ -45,11 +45,11 @@ void V8IDBObserver::constructorCustom(
|
| if (exceptionState.hadException())
|
| return;
|
|
|
| + ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| v8::Local<v8::Function> v8Callback = v8::Local<v8::Function>::Cast(info[0]);
|
| IDBObserverCallback* callback =
|
| - IDBObserverCallback::create(info.GetIsolate(), v8Callback);
|
| - IDBObserver* observer = IDBObserver::create(
|
| - ScriptState::forReceiverObject(info), callback, idbObserverInit);
|
| + IDBObserverCallback::create(scriptState, v8Callback);
|
| + IDBObserver* observer = IDBObserver::create(callback, idbObserverInit);
|
| if (exceptionState.hadException())
|
| return;
|
| DCHECK(observer);
|
|
|