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

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
« no previous file with comments | « third_party/WebKit/Source/modules/navigatorcontentutils/testing/InternalsNavigatorContentUtils.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3fa95b1acba63daf17ed614e1a0d8f96c0bfaa36 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::provideTo(
+ *frame.domWindow()->navigator(),
+ NavigatorContentUtilsClientImpl::create(webFrame));
ScreenOrientationControllerImpl::provideTo(
frame, client->webScreenOrientationClient());
« no previous file with comments | « third_party/WebKit/Source/modules/navigatorcontentutils/testing/InternalsNavigatorContentUtils.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698