| 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);
|
| }
|
|
|
|
|