Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1331)

Unified Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 2627413003: NavigatorContentUtils should be a supplement of Navigator (Closed)
Patch Set: temp Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());

Powered by Google App Engine
This is Rietveld 408576698