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

Unified Diff: chrome/browser/services/gcm/gcm_client_factory.cc

Issue 246863004: WIP initial sketch for an Android GCMClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months 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
« no previous file with comments | « no previous file | google_apis/gcm/gcm.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/services/gcm/gcm_client_factory.cc
diff --git a/chrome/browser/services/gcm/gcm_client_factory.cc b/chrome/browser/services/gcm/gcm_client_factory.cc
index 053b01cd01541f7749d1194c3bcb125949d98885..a4ced1bc157673755d303c0d4148270648d12ad0 100644
--- a/chrome/browser/services/gcm/gcm_client_factory.cc
+++ b/chrome/browser/services/gcm/gcm_client_factory.cc
@@ -4,13 +4,21 @@
#include "chrome/browser/services/gcm/gcm_client_factory.h"
+#if defined(OS_ANDROID)
+#include "google_apis/gcm/gcm_client_impl_android.h"
+#else
#include "google_apis/gcm/gcm_client_impl.h"
+#endif
namespace gcm {
scoped_ptr<GCMClient> GCMClientFactory::BuildInstance() {
+#if defined(OS_ANDROID)
+ return scoped_ptr<GCMClient>(new GCMClientImplAndroid());
+#else
return scoped_ptr<GCMClient>(new GCMClientImpl(
make_scoped_ptr<GCMInternalsBuilder>(new GCMInternalsBuilder())));
+#endif
}
GCMClientFactory::GCMClientFactory() {
« no previous file with comments | « no previous file | google_apis/gcm/gcm.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698