Index: third_party/WebKit/Source/modules/serviceworkers/InstallEvent.cpp |
diff --git a/third_party/WebKit/Source/modules/serviceworkers/InstallEvent.cpp b/third_party/WebKit/Source/modules/serviceworkers/InstallEvent.cpp |
index 5e0964930071610a429d596c841a56c454cafadd..057e3789d73f8beb15c172e7bfc1dfcb978de300 100644 |
--- a/third_party/WebKit/Source/modules/serviceworkers/InstallEvent.cpp |
+++ b/third_party/WebKit/Source/modules/serviceworkers/InstallEvent.cpp |
@@ -19,8 +19,9 @@ InstallEvent* InstallEvent::Create(const AtomicString& type, |
InstallEvent* InstallEvent::Create(const AtomicString& type, |
const ExtendableEventInit& event_init, |
+ const int event_id, |
WaitUntilObserver* observer) { |
- return new InstallEvent(type, event_init, observer); |
+ return new InstallEvent(type, event_init, event_id, observer); |
} |
InstallEvent::~InstallEvent() {} |
@@ -89,7 +90,7 @@ void InstallEvent::registerForeignFetch(ScriptState* script_state, |
return; |
} |
} |
- client->RegisterForeignFetchScopes(sub_scope_urls, parsed_origins); |
+ client->RegisterForeignFetchScopes(event_id_, sub_scope_urls, parsed_origins); |
} |
const AtomicString& InstallEvent::InterfaceName() const { |
@@ -102,7 +103,8 @@ InstallEvent::InstallEvent(const AtomicString& type, |
InstallEvent::InstallEvent(const AtomicString& type, |
const ExtendableEventInit& initializer, |
+ const int event_id, |
WaitUntilObserver* observer) |
- : ExtendableEvent(type, initializer, observer) {} |
+ : ExtendableEvent(type, initializer, observer), event_id_(event_id) {} |
} // namespace blink |