Description[Sync] Fix invalidations on Android.
This bug was preventing Chrome from registering for GCM invalidations on Android, meaning that sync was never told to download new data.
The bug was introduced by http://crrev.com/1048423005, where the ensureGcmIsInitialized line was removed from the SyncController constructor. The onFirstStart call was supposed to handle it, but from a clean start sync is disabled, so that case is not hit.
This patch moves the ensureGcmIsInitialized call back to the constructor, and the test ensures that the call is made at some point during browser initialization.
BUG=475299
Committed: https://crrev.com/dc18c01f1c98bc24fd88e19ff331c9dd573fd12c
Cr-Commit-Position: refs/heads/master@{#325359}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Add a test. #Patch Set 3 : Remove other call. #
Messages
Total messages: 9 (2 generated)
|