Chromium Code Reviews| Index: components/gcm_driver/gcm_client_impl.cc |
| diff --git a/components/gcm_driver/gcm_client_impl.cc b/components/gcm_driver/gcm_client_impl.cc |
| index e36d36c79735e46432bac2d1fb6764b0de917f43..897bb78ef1445b363fcbd3d95c31f04b1e9f6806 100644 |
| --- a/components/gcm_driver/gcm_client_impl.cc |
| +++ b/components/gcm_driver/gcm_client_impl.cc |
| @@ -24,6 +24,7 @@ |
| #include "google_apis/gcm/protocol/checkin.pb.h" |
| #include "google_apis/gcm/protocol/mcs.pb.h" |
| #include "net/http/http_network_session.h" |
| +#include "net/http/http_transaction_factory.h" |
| #include "net/url_request/url_request_context.h" |
| #include "url/gurl.h" |
| @@ -276,11 +277,9 @@ void GCMClientImpl::Initialize( |
| DCHECK(delegate); |
| url_request_context_getter_ = url_request_context_getter; |
| - const net::HttpNetworkSession::Params* network_session_params = |
| - url_request_context_getter_->GetURLRequestContext()-> |
| - GetNetworkSessionParams(); |
| - DCHECK(network_session_params); |
| - network_session_ = new net::HttpNetworkSession(*network_session_params); |
| + network_session_ = url_request_context_getter_->GetURLRequestContext() |
| + ->http_transaction_factory() |
|
fgorski
2014/07/08 16:51:33
nit: you are moving the arrows from end of line to
|
| + ->GetSession(); |
| chrome_build_info_ = chrome_build_info; |