| Index: third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp
|
| diff --git a/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp b/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp
|
| index 3fa9d9054337147b290206fd70cd114701cf2ad5..f51d6f84554d5a5be1f6e19e27556752b8100859 100644
|
| --- a/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp
|
| +++ b/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp
|
| @@ -6,7 +6,7 @@
|
|
|
| #include "bindings/core/v8/ScriptState.h"
|
| #include "bindings/core/v8/ToV8.h"
|
| -#include "bindings/core/v8/V8HiddenValue.h"
|
| +#include "bindings/core/v8/V8PrivateProperty.h"
|
| #include "modules/fetch/BytesConsumerForDataConsumerHandle.h"
|
| #include "modules/fetch/Request.h"
|
| #include "modules/fetch/Response.h"
|
| @@ -98,9 +98,8 @@ FetchEvent::FetchEvent(ScriptState* scriptState,
|
| DCHECK(event->IsObject());
|
| // Sets a hidden value in order to teach V8 the dependency from
|
| // the event to the request.
|
| - V8HiddenValue::setHiddenValue(
|
| - scriptState, event.As<v8::Object>(),
|
| - V8HiddenValue::requestInFetchEvent(scriptState->isolate()), request);
|
| + V8PrivateProperty::getFetchEventRequest(scriptState->isolate())
|
| + .set(event.As<v8::Object>(), request);
|
| // From the same reason as above, setHiddenValue can return false.
|
| // TODO(yhirano): Add an assertion that it returns true once the
|
| // graceful shutdown mechanism is introduced.
|
|
|