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

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp

Issue 2471573005: [Presentation API] (5th) (1-UA) integrate controller and receiver side for 1-UA messaging (Closed)
Patch Set: merge and refactor 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/modules/presentation/PresentationConnection.cpp
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp b/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
index e6d9e530bb57a358a412c9a072ac47baea03b811..5792470077f6d98f4fd2373dd9a537cb997c9655 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
@@ -320,13 +320,14 @@ void PresentationConnection::handleMessageQueue() {
Message* message = m_messages.first().get();
switch (message->type) {
case MessageTypeText:
- client->sendString(m_url, m_id, message->text, nullptr);
+ client->sendString(m_url, m_id, message->text, m_proxy.get());
m_messages.removeFirst();
break;
case MessageTypeArrayBuffer:
- client->sendArrayBuffer(m_url, m_id, static_cast<const uint8_t*>(
- message->arrayBuffer->data()),
- message->arrayBuffer->byteLength(), nullptr);
+ client->sendArrayBuffer(
+ m_url, m_id,
+ static_cast<const uint8_t*>(message->arrayBuffer->data()),
+ message->arrayBuffer->byteLength(), m_proxy.get());
m_messages.removeFirst();
break;
case MessageTypeBlob:

Powered by Google App Engine
This is Rietveld 408576698