| Index: third_party/WebKit/LayoutTests/resources/mojo-helpers.js
|
| diff --git a/third_party/WebKit/LayoutTests/resources/mojo-helpers.js b/third_party/WebKit/LayoutTests/resources/mojo-helpers.js
|
| index ff4c7949c3769a35db22c67a468470433c0102ef..db7a6264bf3d0f6219356e6ff2a3b89c06e6518f 100644
|
| --- a/third_party/WebKit/LayoutTests/resources/mojo-helpers.js
|
| +++ b/third_party/WebKit/LayoutTests/resources/mojo-helpers.js
|
| @@ -34,12 +34,10 @@
|
| 'content/public/renderer/frame_service_registry',
|
| 'content/public/renderer/service_registry',
|
| ], (core, router, support, frameServiceRegistry, serviceRegistry) => {
|
| - if (window.add_completion_callback) {
|
| - add_completion_callback(() => {
|
| - frameServiceRegistry.clearServiceOverridesForTesting();
|
| - serviceRegistry.clearServiceOverridesForTesting();
|
| - });
|
| - }
|
| + add_completion_callback(() => {
|
| + frameServiceRegistry.clearServiceOverridesForTesting();
|
| + serviceRegistry.clearServiceOverridesForTesting();
|
| + });
|
|
|
| return {
|
| core,
|
|
|