diff options
author | iclelland <iclelland@chromium.org> | 2015-10-21 07:03:13 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-21 14:04:03 +0000 |
commit | 8467f460d6cf1b2b5c71664d952819e2b3b58b85 (patch) | |
tree | 624498cf3c7b3c17ac5e99d0fd5954e367ba5103 /chrome/android/chrome_apk.gyp | |
parent | 695d47eaa44d789ada5e81bfc1758929df52af93 (diff) | |
download | chromium_src-8467f460d6cf1b2b5c71664d952819e2b3b58b85.zip chromium_src-8467f460d6cf1b2b5c71664d952819e2b3b58b85.tar.gz chromium_src-8467f460d6cf1b2b5c71664d952819e2b3b58b85.tar.bz2 |
[Background Sync] Use GcmNetworkManager to start the browser for sync events.
This replaces the old BackgroundSyncLauncherService with one that
extends GcmTaskService, pulls in Play Services for Chrome on Android,
and uses the GCM network manager to schedule a one-off task to restart
the browser when the network comes back online if a one-shot background
sync is registered when the browser is stopped.
It also adds the RECEIVE_BOOT_COMPLETED permission to the Chrome Android
manifest, so that registered sync events can persist across device reboots.
(This is a non-dangerous permission)
This requires Google Play Services 7.5, which is a dependency of Chromium as of 0c50961:
https://crrev.com/0c50961006cd76b2a20f445a6f296535664e777d
BUG=491137
Review URL: https://codereview.chromium.org/1324173002
Cr-Commit-Position: refs/heads/master@{#355284}
Diffstat (limited to 'chrome/android/chrome_apk.gyp')
-rw-r--r-- | chrome/android/chrome_apk.gyp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/android/chrome_apk.gyp b/chrome/android/chrome_apk.gyp index d643a9d..e1cf10c 100644 --- a/chrome/android/chrome_apk.gyp +++ b/chrome/android/chrome_apk.gyp @@ -295,6 +295,7 @@ '../../net/net.gyp:net_java_test_support', '../../sync/sync.gyp:sync_java_test_support', '../../third_party/android_tools/android_tools.gyp:android_support_v7_appcompat_javalib', + '../../third_party/android_tools/android_tools.gyp:google_play_services_javalib', '../../ui/android/ui_android.gyp:ui_javatests', ], 'includes': [ '../../build/java.gypi' ], |