Index: components/gcm/gcm_client_factory.cc |
diff --git a/chrome/browser/services/gcm/gcm_client_factory.cc b/components/gcm/gcm_client_factory.cc |
similarity index 57% |
rename from chrome/browser/services/gcm/gcm_client_factory.cc |
rename to components/gcm/gcm_client_factory.cc |
index 053b01cd01541f7749d1194c3bcb125949d98885..5aa2ff1f432242951568b32eb7f88d844c598fc3 100644 |
--- a/chrome/browser/services/gcm/gcm_client_factory.cc |
+++ b/components/gcm/gcm_client_factory.cc |
@@ -2,15 +2,18 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "chrome/browser/services/gcm/gcm_client_factory.h" |
+#include "components/gcm/gcm_client_factory.h" |
+#include "google_apis/gcm/base/encryptor.h" |
#include "google_apis/gcm/gcm_client_impl.h" |
namespace gcm { |
-scoped_ptr<GCMClient> GCMClientFactory::BuildInstance() { |
+scoped_ptr<GCMClient> GCMClientFactory::BuildInstance( |
+ scoped_ptr<Encryptor> encryptor) { |
return scoped_ptr<GCMClient>(new GCMClientImpl( |
- make_scoped_ptr<GCMInternalsBuilder>(new GCMInternalsBuilder()))); |
+ make_scoped_ptr<GCMInternalsBuilder>( |
+ new GCMInternalsBuilder()), encryptor.Pass())); |
} |
GCMClientFactory::GCMClientFactory() { |