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

Unified Diff: blimp/net/tcp_engine_transport.cc

Issue 1962393004: Added a debug info UI for Blimp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Kevin's comments 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
Index: blimp/net/tcp_engine_transport.cc
diff --git a/blimp/net/tcp_engine_transport.cc b/blimp/net/tcp_engine_transport.cc
index f214a69189d99ba13584c34fecc73d1620bc8acc..7acf538ad6a6088e453faecd523af896c9e84d7b 100644
--- a/blimp/net/tcp_engine_transport.cc
+++ b/blimp/net/tcp_engine_transport.cc
@@ -10,6 +10,7 @@
#include "base/callback_helpers.h"
#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
+#include "blimp/net/blimp_connection_statistics.h"
#include "blimp/net/stream_socket_connection.h"
#include "net/socket/stream_socket.h"
#include "net/socket/tcp_server_socket.h"
@@ -59,8 +60,8 @@ void TCPEngineTransport::Connect(const net::CompletionCallback& callback) {
std::unique_ptr<BlimpConnection> TCPEngineTransport::TakeConnection() {
DCHECK(connect_callback_.is_null());
DCHECK(accepted_socket_);
- return base::WrapUnique(
- new StreamSocketConnection(std::move(accepted_socket_)));
+ return base::WrapUnique(new StreamSocketConnection(
+ std::move(accepted_socket_), new BlimpConnectionStatistics));
Kevin M 2016/05/24 21:49:01 This leaks the statistics object. Maybe consider
}
const char* TCPEngineTransport::GetName() const {

Powered by Google App Engine
This is Rietveld 408576698