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

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

Issue 2614143002: Use a new Supplement constructor for LocalFrame's supplements (Closed)
Patch Set: 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 ae7eb0603589ee35f43453da8f5cdb1197c952c3..47ddf853f58033602ad7902f095aead1442707c8 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
@@ -1142,7 +1142,7 @@ void ChromeClientImpl::installSupplements(LocalFrame& frame) {
providePushControllerTo(frame, client->pushClient());
provideUserMediaTo(frame,
UserMediaClientImpl::create(client->userMediaClient()));
- provideIndexedDBClientTo(frame, IndexedDBClientImpl::create());
+ provideIndexedDBClientTo(frame, IndexedDBClientImpl::create(frame));
provideLocalFileSystemTo(frame, LocalFileSystemClient::create());
provideNavigatorContentUtilsTo(
frame, NavigatorContentUtilsClientImpl::create(webFrame));
@@ -1151,9 +1151,10 @@ void ChromeClientImpl::installSupplements(LocalFrame& frame) {
frame, client->webScreenOrientationClient());
if (RuntimeEnabledFeatures::presentationEnabled())
PresentationController::provideTo(frame, client->presentationClient());
- if (RuntimeEnabledFeatures::audioOutputDevicesEnabled())
+ if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) {
provideAudioOutputDeviceClientTo(frame,
- AudioOutputDeviceClientImpl::create());
+ new AudioOutputDeviceClientImpl(frame));
+ }
if (RuntimeEnabledFeatures::installedAppEnabled())
InstalledAppController::provideTo(frame, client->installedAppClient());
}

Powered by Google App Engine
This is Rietveld 408576698