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

Unified Diff: blimp/net/engine_connection_manager.cc

Issue 1492643003: [Blimp Net] Add EngineAuthHandler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« blimp/net/engine_auth_handler.h ('K') | « blimp/net/engine_auth_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/engine_connection_manager.cc
diff --git a/blimp/net/engine_connection_manager.cc b/blimp/net/engine_connection_manager.cc
index 549caa3e201e96588b0b6b78c81c04beabb1d063..aa27cc001112e802d94a2a1e31b486ba71a4d131 100644
--- a/blimp/net/engine_connection_manager.cc
+++ b/blimp/net/engine_connection_manager.cc
@@ -7,6 +7,7 @@
#include "base/logging.h"
#include "blimp/net/blimp_connection.h"
#include "blimp/net/blimp_transport.h"
+#include "blimp/net/engine_auth_handler.h"
#include "net/base/net_errors.h"
namespace blimp {
@@ -34,7 +35,9 @@ void EngineConnectionManager::OnConnectResult(BlimpTransport* transport,
int result) {
// Expects engine transport to be reliably, thus |result| is always net::OK.
CHECK(result == net::OK) << "Transport failure:" << transport->GetName();
- connection_handler_->HandleConnection(transport->TakeConnection());
+ // EngineAuthHandler manages its own lifetime.
+ EngineAuthHandler* auth_handler = new EngineAuthHandler(connection_handler_);
+ auth_handler->HandleConnection(transport->TakeConnection());
Connect(transport);
}
« blimp/net/engine_auth_handler.h ('K') | « blimp/net/engine_auth_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698