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

Unified Diff: blimp/net/blimp_connection.cc

Issue 1962393004: Added a debug info UI for Blimp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added empty implementation for linux client Created 4 years, 7 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 | « blimp/net/blimp_connection.h ('k') | blimp/net/blimp_connection_statistics.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/blimp_connection.cc
diff --git a/blimp/net/blimp_connection.cc b/blimp/net/blimp_connection.cc
index e8f3c68cc376131814ccd41bcf308c8950a2ce91..792d0943730b7d7f2e20bf3865e1d352637a4039 100644
--- a/blimp/net/blimp_connection.cc
+++ b/blimp/net/blimp_connection.cc
@@ -20,7 +20,6 @@
#include "net/base/completion_callback.h"
namespace blimp {
-namespace {
// Forwards incoming blimp messages to PacketWriter.
class BlimpMessageSender : public BlimpMessageProcessor {
@@ -97,8 +96,6 @@ void BlimpMessageSender::OnWritePacketComplete(int result) {
}
}
-} // namespace
-
BlimpConnection::BlimpConnection(std::unique_ptr<PacketReader> reader,
std::unique_ptr<PacketWriter> writer)
: reader_(std::move(reader)),
@@ -110,9 +107,7 @@ BlimpConnection::BlimpConnection(std::unique_ptr<PacketReader> reader,
// Observe the connection errors received by any of this connection's network
// objects.
message_pump_->set_error_observer(this);
- BlimpMessageSender* sender =
- static_cast<BlimpMessageSender*>(outgoing_msg_processor_.get());
- sender->set_error_observer(this);
+ outgoing_msg_processor_->set_error_observer(this);
}
BlimpConnection::BlimpConnection() {}
« no previous file with comments | « blimp/net/blimp_connection.h ('k') | blimp/net/blimp_connection_statistics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698