| Index: google_apis/gcm/gcm_client_impl.cc
|
| diff --git a/google_apis/gcm/gcm_client_impl.cc b/google_apis/gcm/gcm_client_impl.cc
|
| index a0a2142f2167aca1d681e7a320605bdba02f7e11..599bd470c8fa2e49983495b44b2e386d43d11461 100644
|
| --- a/google_apis/gcm/gcm_client_impl.cc
|
| +++ b/google_apis/gcm/gcm_client_impl.cc
|
| @@ -14,6 +14,7 @@
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/strings/stringprintf.h"
|
| #include "base/time/default_clock.h"
|
| +#include "google_apis/gcm/base/encryptor.h"
|
| #include "google_apis/gcm/base/mcs_message.h"
|
| #include "google_apis/gcm/base/mcs_util.h"
|
| #include "google_apis/gcm/engine/checkin_request.h"
|
| @@ -154,8 +155,10 @@ scoped_ptr<ConnectionFactory> GCMInternalsBuilder::BuildConnectionFactory(
|
| recorder));
|
| }
|
|
|
| -GCMClientImpl::GCMClientImpl(scoped_ptr<GCMInternalsBuilder> internals_builder)
|
| +GCMClientImpl::GCMClientImpl(scoped_ptr<GCMInternalsBuilder> internals_builder,
|
| + scoped_ptr<Encryptor> encryptor)
|
| : internals_builder_(internals_builder.Pass()),
|
| + encryptor_(encryptor.Pass()),
|
| state_(UNINITIALIZED),
|
| clock_(internals_builder_->BuildClock()),
|
| url_request_context_getter_(NULL),
|
| @@ -191,7 +194,8 @@ void GCMClientImpl::Initialize(
|
| chrome_build_proto_.CopyFrom(chrome_build_proto);
|
| account_ids_ = account_ids;
|
|
|
| - gcm_store_.reset(new GCMStoreImpl(path, blocking_task_runner));
|
| + gcm_store_.reset(
|
| + new GCMStoreImpl(path, blocking_task_runner, encryptor_.get()));
|
|
|
| delegate_ = delegate;
|
|
|
|
|