Chromium Code Reviews| Index: third_party/WebKit/Source/web/ChromeClientImpl.cpp |
| diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.cpp b/third_party/WebKit/Source/web/ChromeClientImpl.cpp |
| index e5712bb613f807a4273fbe62cd9d4562896d7ea6..b0972e570971d3e0f0d57bab329e6dc85504e44d 100644 |
| --- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp |
| +++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp |
| @@ -57,6 +57,7 @@ |
| #include "modules/audio_output_devices/AudioOutputDeviceClient.h" |
| #include "modules/installedapp/InstalledAppController.h" |
| #include "modules/mediastream/UserMediaController.h" |
| +#include "modules/navigatorcontentutils/NavigatorContentUtils.h" |
| #include "modules/presentation/PresentationController.h" |
| #include "modules/push_messaging/PushController.h" |
| #include "modules/screen_orientation/ScreenOrientationControllerImpl.h" |
| @@ -1155,8 +1156,9 @@ void ChromeClientImpl::installSupplements(LocalFrame& frame) { |
| UserMediaClientImpl::create(client->userMediaClient())); |
| provideIndexedDBClientTo(frame, IndexedDBClientImpl::create(frame)); |
| provideLocalFileSystemTo(frame, LocalFileSystemClient::create()); |
| - provideNavigatorContentUtilsTo( |
| - frame, NavigatorContentUtilsClientImpl::create(webFrame)); |
| + NavigatorContentUtils::provideNavigatorContentUtilsTo( |
| + *frame.domWindow()->navigator(), |
|
sof
2017/01/13 07:40:30
this will now instantiate a Navigator earlier (and
|
| + NavigatorContentUtilsClientImpl::create(webFrame)); |
| ScreenOrientationControllerImpl::provideTo( |
| frame, client->webScreenOrientationClient()); |