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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 220333003: Apply OwnPtr|PassOwnPtr to handle member variables and arguments in MIDIClient (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix a unit test #2 Created 6 years, 9 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
« Source/modules/webmidi/MIDIController.cpp ('K') | « Source/web/MIDIClientProxy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index 7b8480af59be4c5b1c36fac0e1b637f4b99c79b2..4dbb28f09e84cb73db9682bc3a37649d8a3d3c58 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -361,7 +361,6 @@ WebViewImpl::WebViewImpl(WebViewClient* client)
, m_recreatingGraphicsContext(false)
, m_geolocationClientProxy(adoptPtr(new GeolocationClientProxy(client ? client->geolocationClient() : 0)))
, m_userMediaClientImpl(this)
- , m_midiClientProxy(adoptPtr(new MIDIClientProxy(client ? client->webMIDIClient() : 0)))
, m_flingModifier(0)
, m_flingSourceDevice(false)
, m_fullscreenController(FullscreenController::create(this))
@@ -387,7 +386,7 @@ WebViewImpl::WebViewImpl(WebViewClient* client)
m_page = adoptPtr(new Page(pageClients));
provideUserMediaTo(*m_page, &m_userMediaClientImpl);
MediaKeysController::provideMediaKeysTo(*m_page, &m_mediaKeysClientImpl);
- provideMIDITo(*m_page, m_midiClientProxy.get());
+ provideMIDITo(*m_page, MIDIClientProxy::create(client ? client->webMIDIClient() : 0));
#if ENABLE(INPUT_SPEECH)
provideSpeechInputTo(*m_page, SpeechInputClientImpl::create(client));
#endif
« Source/modules/webmidi/MIDIController.cpp ('K') | « Source/web/MIDIClientProxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698