Add a build flag to use platform GCM.

Desktop / Chromium - ralphnathan [google.com] - 14 June 2017 16:54 EDT

Android Things, a variant on Android that may not have gmscore, needs GCM. To enable this, make the GCM client selection a build flag.

The build flag is USE_GCM_FROM_PLATFORM which is false for non-Android builds.

Bug: 62139031 Test: manual test on device Review-Url: https://codereview.chromium.org/2922893002 Cr-Commit-Position: refs/heads/master@{#479500}

ed5c0e0 Add a build flag to use platform GCM.
components/gcm_driver/BUILD.gn | 68 +++++++++-------------
components/gcm_driver/config.gni | 9 +++
components/gcm_driver/gcm_profile_service.cc | 22 +++----
components/gcm_driver/gcm_profile_service.h | 5 +-
components/gcm_driver/instance_id/BUILD.gn | 9 ++-
.../instance_id/instance_id_driver_unittest.cc | 9 +--
6 files changed, 63 insertions(+), 59 deletions(-)

Upstream: git.chromium.org


  • Share