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

Unified Diff: third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp

Issue 2691363005: Mojo C++ bindings: remove usage of AssociatedGroup from blink. (Closed)
Patch Set: Created 3 years, 10 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/bluetooth/Bluetooth.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/modules/broadcastchannel/BroadcastChannel.cpp
diff --git a/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp b/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp
index 663842f8c90e8d92b2fba0128b47a02cf24f3c88..33eaa4a51c06927b6a950f2bb2f580efad0e98cc 100644
--- a/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp
+++ b/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp
@@ -127,19 +127,13 @@ BroadcastChannel::BroadcastChannel(ExecutionContext* executionContext,
// Local BroadcastChannelClient for messages send from the browser to this
// channel.
mojom::blink::BroadcastChannelClientAssociatedPtrInfo localClientInfo;
- m_binding.Bind(&localClientInfo, provider.associated_group());
+ m_binding.Bind(&localClientInfo);
m_binding.set_connection_error_handler(convertToBaseCallback(
WTF::bind(&BroadcastChannel::onError, wrapWeakPersistent(this))));
// Remote BroadcastChannelClient for messages send from this channel to the
// browser.
- mojom::blink::BroadcastChannelClientAssociatedPtrInfo remoteClientInfo;
- mojo::AssociatedInterfaceRequest<mojom::blink::BroadcastChannelClient>
- remoteCientRequest;
- provider.associated_group()->CreateAssociatedInterface(
- mojo::AssociatedGroup::WILL_PASS_REQUEST, &remoteClientInfo,
- &remoteCientRequest);
- m_remoteClient.Bind(std::move(remoteClientInfo));
+ auto remoteCientRequest = mojo::MakeRequest(&m_remoteClient);
m_remoteClient.set_connection_error_handler(convertToBaseCallback(
WTF::bind(&BroadcastChannel::onError, wrapWeakPersistent(this))));
« no previous file with comments | « third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698