| 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 9d394618e8f5b7ecd4e5e3cf2349167c631688aa..55b9cf748fba6e08b902a591c7cfc1448486aef4 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"
|
| @@ -97,9 +97,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::getRequestInFetchEvent(scriptState->isolate())
|
| + .set(scriptState->context(), 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.
|
|
|