summaryrefslogtreecommitdiffstats
path: root/sync/android
Commit message (Collapse)AuthorAgeFilesLines
* Fix Java style issues in sync/androidaurimas@chromium.org2013-12-1216-81/+81
| | | | | | | | | BUG=320711 NOTRY=true Review URL: https://codereview.chromium.org/111933005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240260 0039d316-1c4b-4281-b951-d872f2087c98
* Fixing all Java import ordering issues.aurimas@chromium.org2013-12-105-8/+4
| | | | | | | | | | BUG=320711 TBR=isherman@chromium.org NOTRY=true Review URL: https://codereview.chromium.org/110963003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239823 0039d316-1c4b-4281-b951-d872f2087c98
* Attempt to fix Invalidations client name crashrlarocque@chromium.org2013-11-227-29/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The first attempt at setting consistent invalidator IDs, r234524, has turned out to be a failure. It was based on the assumption that the InvalidationController was the only object that would start the InvalidationService. That assumption was wrong. This CL takes a new approach. Rather than having the InvalidationController manage the ID and send it to the InvalidationService, we now managed it in the InvalidationClientNameProvider class, which is avialable to both the InvalidationController and InvalidationService. This allows both classes to synchronously request a client name as they need it. The InvalidationClientNameProvider is, by default, backed by an InvalidationClientNameGenerator that provides it with fully random IDs. This is not ideal, but it's better than the other alternatives. Once this change is fully implemented, the downstream code will invoke UniqueIdInvalidationClientNameGenerator.doInitializeAndInstallGenerator() during early init. This will initialize a UniqueIdInvalidationClientNameGenerator with a UuuidBasedUniqueIdentificationGenerator that will provide a consistent identifier across restarts, and inject this InvalidationClientNameGenerator into the InvalidationClientNameProvider. BUG=320873 Review URL: https://codereview.chromium.org/77243002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236681 0039d316-1c4b-4281-b951-d872f2087c98
* Rename stale SyncContentResolverWrapper occurrences to ↵cimamoglu@chromium.org2013-11-131-24/+24
| | | | | | | | | | SyncContentResolverDelegate. The relevant CL where renaming was done: https://chromiumcodereview.appspot.com/11929040/ Review URL: https://codereview.chromium.org/59883009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234816 0039d316-1c4b-4281-b951-d872f2087c98
* Support for shared invalidator client IDsrlarocque@chromium.org2013-11-123-42/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | Allow the Java side of the Andorid invalidations implementation to share its client ID with its associated C++ classes. The InvalidationController class will prefer to use an ID from a provided UniqueIdentificationGeneratorFactory. This ID would have the advantage of persisting across restarts, which is necessary to ensure effective reflection blocking. If the UniqueIdentificationGeneratorFactory has not been provided, as may be the case in tests, the InvalidationController will generate its own temporary ID. This will effectievely disable reflection blocking, but it's better than returning a consistent ID (since that would risk blocking notifications that we actually need). This randomly generated ID is not much different from the randomly generated ID created by the InvalidationService prior to this CL. At the time of this writing, the code to set up the UniqueIDGeneratorFactory is not in place. This will be added in a later commit. Until then, reflection blocking will remain broken. BUG=172391 Review URL: https://codereview.chromium.org/54923003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234524 0039d316-1c4b-4281-b951-d872f2087c98
* (2 of 2) Move InvalidationController to chrome/rlarocque@chromium.org2013-10-311-128/+0
| | | | | | | | | | | | | | | Remove InvalidationController from its old location. This completes the move that was started in r231232. The downstream code has been updated to point to the InvalidationController in its new location. Now that the class defined in the old location is completely unused, we can safely remove it. BUG=172391 Review URL: https://codereview.chromium.org/49833004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231975 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed SyncStatusHelper not updating observers on changes.apiccion@chromium.org2013-10-312-33/+333
| | | | | | | | | | | * SyncStatusHelper now updates observers whenever cached contents changes, previously only updated on content resolver notifications. BUG=299123 Review URL: https://codereview.chromium.org/26116009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231960 0039d316-1c4b-4281-b951-d872f2087c98
* (1 of 2) Move InvalidationController to chrome/rlarocque@chromium.org2013-10-276-510/+185
| | | | | | | | | | | | | | | | | | | | | | | Move the InvalidationController Java class from sync/notifier to chrome/browser/invalidation. Move its IntentProtocol inner class into its own class, InvalidationIntentProtocol, and keep it in sync/notifier. In order to prevent this change from breaking the downstream build, a reduced version of InvalidationController has been left behind in the old location. The second part of this patch will remove it. An unfortunate side effect of having two InvalidationControllers is that they may be double-notified when the when the activity state changes, and this may cause the start or stop signals to be sent to the InvalidationService twice. This is wasteful, but otherwise mostly harmless. TBR=jhawkins BUG=172391 Review URL: https://codereview.chromium.org/45103003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231232 0039d316-1c4b-4281-b951-d872f2087c98
* Add visibility check to [ActivityStatus]dfalcantara@chromium.org2013-10-171-8/+1
| | | | | | | | | | | | | | | | | | Some Java code checks to see whether Chrome is in the foreground when it should really be checking if the Application's top Activity is visible for scenarios where a little popup partially covers Chrome. Add a method to make the check more explicit, then change obvious places that do checks on whether Chrome is running to use the new function. Precursor to https://gerrit-int.chromium.org/#/c/45073/ BUG=308211 R=nyquist@chromium.org, tedchoc@chromium.org, yfriedman@chromium.org Review URL: https://codereview.chromium.org/27509007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229172 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup for refactored ActivityStatus.tedchoc@chromium.org2013-10-161-1/+1
| | | | | | | | | R=yfriedman BUG= Review URL: https://codereview.chromium.org/24795004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228834 0039d316-1c4b-4281-b951-d872f2087c98
* Remove deprecated methods.shashishekhar@chromium.org2013-10-161-18/+0
| | | | | | | | | | These methods are no longer used. TBR=nyquist Review URL: https://codereview.chromium.org/26155005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228811 0039d316-1c4b-4281-b951-d872f2087c98
* Fix issue with sync status observer for testshell.nyquist@chromium.org2013-10-111-2/+20
| | | | | | | | | | | | Also adds a test to ensure the sync status observer behaves correctly. Depends on: https://codereview.chromium.org/23686014/ BUG=272584 Review URL: https://codereview.chromium.org/23450036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228237 0039d316-1c4b-4281-b951-d872f2087c98
* Making OAuth2TokenService multi-login aware:fgorski@chromium.org2013-09-201-0/+7
| | | | | | | | | | | | | | * Adding account_id as a parameter to public methods, like: StartRequestXX, RefreshTokenIsAvailable, GetRefreshToken, InvalidateToken, * Updating callers and derived classes, * Updating cache handling for the OAuth2 access tokens in OAuth2TokenService BUG=277149 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=224031 Review URL: https://chromiumcodereview.appspot.com/23382008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224294 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Making OAuth2TokenService multi-login aware:"hidehiko@chromium.org2013-09-191-7/+0
| | | | | | | | | | | | | | | | | | > Making OAuth2TokenService multi-login aware: > * Adding account_id as a parameter to public methods, like: StartRequestXX, RefreshTokenIsAvailable, GetRefreshToken, InvalidateToken, > * Updating callers and derived classes, > * Updating cache handling for the OAuth2 access tokens in OAuth2TokenService > > BUG=277149 > > Review URL: https://chromiumcodereview.appspot.com/23382008 TBR=fgorski@chromium.org BUG=294624 Review URL: https://codereview.chromium.org/23800008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224107 0039d316-1c4b-4281-b951-d872f2087c98
* Making OAuth2TokenService multi-login aware:fgorski@chromium.org2013-09-191-0/+7
| | | | | | | | | | | | * Adding account_id as a parameter to public methods, like: StartRequestXX, RefreshTokenIsAvailable, GetRefreshToken, InvalidateToken, * Updating callers and derived classes, * Updating cache handling for the OAuth2 access tokens in OAuth2TokenService BUG=277149 Review URL: https://chromiumcodereview.appspot.com/23382008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224031 0039d316-1c4b-4281-b951-d872f2087c98
* [sync] Remove the last usage of clientlogin for Android.nyquist@chromium.org2013-09-161-3/+0
| | | | | | | | | | | This CL removes the last usage of clientlogin tokens for 'chromiumsync' on Android. BUG=264503 Review URL: https://chromiumcodereview.appspot.com/23686014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223450 0039d316-1c4b-4281-b951-d872f2087c98
* Enable invalidations for arbitrary objects on Android.stepco@chromium.org2013-09-117-26/+421
| | | | | | | | | | Enable the native InvalidationServiceAndroid to call into the Java-side InvalidationController in order to register for invalidations for arbitrary objects. Currently only Sync objects can be registered for. This change is motivated by the need to receive invalidations for enterprise user policy on Android. BUG=263287 Review URL: https://chromiumcodereview.appspot.com/23643002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222417 0039d316-1c4b-4281-b951-d872f2087c98
* Start using OAuth2 for sync cacheinvalidation.nyquist@chromium.org2013-09-101-4/+7
| | | | | | | | | | | | | Currently our cacheinvalidation implementation still uses clientlogin. This changes our implementation to instead use OAuth2. This requires the roll to r313 of the cacheinvalidation library. BUG=264503 Review URL: https://chromiumcodereview.appspot.com/22872002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222262 0039d316-1c4b-4281-b951-d872f2087c98
* Upstream Chrome sync adapter.nyquist@chromium.org2013-08-212-17/+0
| | | | | | | | | | | | | | This upstreams the Chrome sync adapter, and adds tests for it. It also adds it to the manifest for the Chromium testshell. Since downstream still uses a synchronous startup, the sync adapter supports both synchronous and asynchronous startup. BUG=272584 Review URL: https://chromiumcodereview.appspot.com/23004003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218707 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Remove all usage of com.google.common.collectyfriedman@chromium.org2013-08-207-96/+104
| | | | | | | | | | To minimize apk size, minimize dependencies on guava. This removes 7k method definitions from the dex file. BUG=272790 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/22978010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218579 0039d316-1c4b-4281-b951-d872f2087c98
* Move contract authority accessor method to SyncStatusHelpernyquist@chromium.org2013-08-194-6/+24
| | | | | | | | | | | | | | Access to the sync contract authority is currently gained through the InvalidationController, but this CL moves it to the SyncStatusHelper. The old method is with this deprecated, and should be removed once downstream starts using the new method. BUG=272584 Review URL: https://chromiumcodereview.appspot.com/22824028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218325 0039d316-1c4b-4281-b951-d872f2087c98
* Add constant for Sync OAuth2 scopenyquist@chromium.org2013-08-151-0/+5
| | | | | | | | | | | | This deprecates the use of clientlogin scope, and adds the new OAuth2 scope to a Java constant. BUG=264503 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/22868002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217827 0039d316-1c4b-4281-b951-d872f2087c98
* Add functionality to enable GCM.nyquist@chromium.org2013-08-141-0/+29
| | | | | | | | | | | | Whenever Chrome uses GCM it has to be enabled. This adds the functionality to do so to the ChromeSigninController, since using GCM is mostly used together with a signed in user. BUG=272584 Review URL: https://chromiumcodereview.appspot.com/23156002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217522 0039d316-1c4b-4281-b951-d872f2087c98
* Ensure we never try to register for the object id "NULL"nyquist@chromium.org2013-08-094-26/+104
| | | | | | | | | | | | | Currently if we choose to register for all model types for cache invalidation, we also register for the ObjectId "NULL", which does not exist. This causes errors with syncing the registration state between client and server, since the server does not accept this ObjectId. BUG=240535 Review URL: https://chromiumcodereview.appspot.com/22642004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216591 0039d316-1c4b-4281-b951-d872f2087c98
* Fix issue with null-value OAuth2 tokens for Android.nyquist@chromium.org2013-08-011-21/+37
| | | | | | | | | | | | | | | | | | | Currently, AndroidProfileOAuth2TokenServiceHelper crashes if the auth token returned from the account manager is null. This CL makes it possible to get null tokens back. A test is also added, and the test harness is improved to support adding null auth-tokens. This is try 2. Original CL reviewed in: https://chromiumcodereview.appspot.com/20692003 BUG=239491 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/21436002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215048 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 214841 "Fix issue with null-value OAuth2 tokens for Android."tbreisacher@chromium.org2013-07-311-37/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Broke check_deps on chromium.linux: http://build.chromium.org/p/chromium.linux/builders/Linux%20Builder/builds/12317/steps/check_deps/logs/stdio ERROR in src/chrome/android/javatests/src/org/chromium/chrome/browser/signin/AndroidProfileOAuth2TokenServiceHelperTest.java Illegal include: "sync/android/java/src/org/chromium/sync/signin/AccountManagerHelper.java" Because of no rule applying. Illegal include: "sync/test/android/javatests/src/org/chromium/sync/test/util/AccountHolder.java" Because of no rule applying. Illegal include: "sync/test/android/javatests/src/org/chromium/sync/test/util/MockAccountManager.java" Because of no rule applying. FAILED > Fix issue with null-value OAuth2 tokens for Android. > > Currently, AndroidProfileOAuth2TokenServiceHelper crashes if the auth > token returned from the account manager is null. This CL makes it > possible to get null tokens back. > > A test is also added, and the test harness is improved to support adding > null auth-tokens. > > BUG=239491 > NOTRY=true > > Review URL: https://chromiumcodereview.appspot.com/20692003 TBR=nyquist@chromium.org Review URL: https://codereview.chromium.org/21427002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214843 0039d316-1c4b-4281-b951-d872f2087c98
* Fix issue with null-value OAuth2 tokens for Android.nyquist@chromium.org2013-07-311-21/+37
| | | | | | | | | | | | | | | | Currently, AndroidProfileOAuth2TokenServiceHelper crashes if the auth token returned from the account manager is null. This CL makes it possible to get null tokens back. A test is also added, and the test harness is improved to support adding null auth-tokens. BUG=239491 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/20692003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214841 0039d316-1c4b-4281-b951-d872f2087c98
* Switch to non-deprecated version of getAuthToken().newt@chromium.org2013-07-261-2/+2
| | | | | | | | | BUG=260518 R=nyquist@chromium.org Review URL: https://codereview.chromium.org/20155004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213740 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Unify all string log tags to use a simple constant.yfriedman@chromium.org2013-07-185-5/+5
| | | | | | | | | | | | Per attached bug, this is cheaper and it's good to a have a consistent style. BUG=146559 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/19485004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212215 0039d316-1c4b-4281-b951-d872f2087c98
* Switch Android ProfileSyncService to OAuth2pavely@chromium.org2013-07-091-2/+2
| | | | | | | | BUG=226469 Review URL: https://chromiumcodereview.appspot.com/17628003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210669 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the OWNERS that no longer work on the project.aurimas@chromium.org2013-07-011-1/+0
| | | | | | | | | Remove jcivelli@, and nileshagrawal@ who no longer work on Chrome for Android. Review URL: https://chromiumcodereview.appspot.com/18178014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209531 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Introduce in-memory cache for Android sync settings.yfriedman@chromium.org2013-06-293-86/+362
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Checking Android sync settings appears to be cheap but masks potential slow calls and jank on the ui-thread due to many parties querying sync state. One example for slowness is due to this issuing IPCs to a separate service which may need to be re-started and load state from disk. Testing on a Galaxy Nexus shows ~50-70ms aggregrate time spent querying Android sync state reducing to <5ms for loading an initial page. There are additional checks throughout the lifetime of the app that now become in-memory lookups. Regarding the implementation: - Master Sync Automatically is account agnostic and can be cached once at startup, and only updated when a notification is received that settings have changed. - The remaining settings are per-account. On access of any of these settings, we grab the latest values for the requested account, and also update when a notification is received. Updates are infrequent and only when the signed in account changes. BUG=238506 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/16092014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209249 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Hardcode InvalidationService as the Ticl service.yfriedman@chromium.org2013-05-232-98/+4
| | | | | | | | | | | | Adding this extra level of indirection through the app manifest was needed to migrate to tango V2. It's no longer necessary and can cause the main thread to sleep while accessing fields from package manager. BUG=138506 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/15337006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201900 0039d316-1c4b-4281-b951-d872f2087c98
* Add way to tell if device can add google accountsdtrainor@chromium.org2013-04-293-0/+21
| | | | | | | | | | Need to know if the device supports adding google accounts. BUG=235076 Review URL: https://chromiumcodereview.appspot.com/14314011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197093 0039d316-1c4b-4281-b951-d872f2087c98
* Android: Make sure the NetworkChangeNotifier is initialized in getAuthTokenclamy@chromium.org2013-04-251-1/+2
| | | | | | | | BUG=224019 Review URL: https://chromiumcodereview.appspot.com/14424008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196396 0039d316-1c4b-4281-b951-d872f2087c98
* [Sync] Move Android enabled types logic into nativezea@chromium.org2013-03-276-185/+49
| | | | | | | | | | | | This adds a JNI method to get the set of enabled types, which is then used in registering for invalidations. BUG=224144 Review URL: https://chromiumcodereview.appspot.com/13109002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191025 0039d316-1c4b-4281-b951-d872f2087c98
* Get OAuth2TokenService working on Android.dubroy@chromium.org2013-03-261-0/+7
| | | | | | | | | | | | | In order to get OAuth tokens on Android, we have to call out to Java. This CL makes it possible. It's not the ideal solution but works for now. BUG= 222271 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190531 Review URL: https://codereview.chromium.org/12880014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190600 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 190531 "Get OAuth2TokenService working on Android."hashimoto@chromium.org2013-03-261-7/+0
| | | | | | | | | | | | | | | | > Get OAuth2TokenService working on Android. > > In order to get OAuth tokens on Android, we have to call out to Java. This CL > makes it possible. It's not the ideal solution but works for now. > > BUG= 222271 > > Review URL: https://codereview.chromium.org/12880014 TBR=dubroy@chromium.org Review URL: https://codereview.chromium.org/12782018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190558 0039d316-1c4b-4281-b951-d872f2087c98
* Get OAuth2TokenService working on Android.dubroy@chromium.org2013-03-261-0/+7
| | | | | | | | | | | In order to get OAuth tokens on Android, we have to call out to Java. This CL makes it possible. It's not the ideal solution but works for now. BUG= 222271 Review URL: https://codereview.chromium.org/12880014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190531 0039d316-1c4b-4281-b951-d872f2087c98
* [sync] Remove deprecated SyncStatusHelper methodsnyquist@chromium.org2013-03-211-107/+2
| | | | | | | | | | | | | | | https://codereview.chromium.org/12873002/ added a new class to be used for signin-related tasks. Downstream has now moved to use the new methods, so we can now safely remove these methods. BUG=159203 Review URL: https://chromiumcodereview.appspot.com/12666008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189574 0039d316-1c4b-4281-b951-d872f2087c98
* [sync] Split sync and signin helper classnyquist@chromium.org2013-03-154-48/+186
| | | | | | | | | | | | | | | Currently SyncStatusHelper handles both signin and sync-related tasks. This splits it into two. There will be a follow-up CL to remove the now deprecated methods, as soon as the downstream code has been updated to use the new class. BUG=159203 Review URL: https://chromiumcodereview.appspot.com/12873002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188361 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a bug that caused AuthToken permission not to be shown on Androidnyquist@chromium.org2013-03-131-17/+20
| | | | | | | | BUG=179188,181579,179844,180259 Review URL: https://codereview.chromium.org/12447017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@187955 0039d316-1c4b-4281-b951-d872f2087c98
* [sync] Upstream the Android ProfileSyncServicenyquist@chromium.org2013-03-071-0/+68
| | | | | | | | | | | | | | | | | This creates a Java-layer ProfileSyncService that is the only class that should be used from downstream Chrome for Android. The native counterparts should not be used. In the process, a hashing utility and also, some identity code and their respective tests had to be upstreamed. No functional changes have been made to them. BUG=159203 TBR=sky@chromium.org Review URL: https://codereview.chromium.org/12313075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186798 0039d316-1c4b-4281-b951-d872f2087c98
* Android: Use ObserverList to maintain a list of observers/listenersnileshagrawal@chromium.org2013-03-051-8/+6
| | | | | | | | | | | Using ObserverList allows for observers adding/removing themselves/others while they are being notified, in a safe way BUG= Review URL: https://chromiumcodereview.appspot.com/12388057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186090 0039d316-1c4b-4281-b951-d872f2087c98
* [sync] Upstream the code that triggers the InvalidationControllernyquist@chromium.org2013-02-225-12/+135
| | | | | | | | | | | | | | | The InvalidationController needs to be started and stopped based on when the main activity is resumed and paused. This upstreams the listener part of that. It also adds a test for the new functionality and a mock implementation of the SyncContentResolverDelegate. BUG=159203 Review URL: https://chromiumcodereview.appspot.com/12310008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183975 0039d316-1c4b-4281-b951-d872f2087c98
* Add retry function to getNewAuthTokenclamy@chromium.org2013-02-152-7/+32
| | | | | | | | | | | | Created a new method for the AccountManagerHelper in Android, that fetches a new token asynchronously, and will retry on network failures. BUG=165687 Review URL: https://chromiumcodereview.appspot.com/12207112 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182749 0039d316-1c4b-4281-b951-d872f2087c98
* [sync] Add ModelTypeResolver and control typesnyquist@chromium.org2013-02-116-8/+301
| | | | | | | | | | | | | | Adds a few new things: * Some control ModelTypes (NIGORI, EXPERIMENTS). * Now we always register control types through setRegisteredTypes() * Add support for ModelType groups (for AUTOFILL / AUTOFILL_PROFILES) * Support for refreshing the cacheinvalidation registration. BUG=113164 Review URL: https://codereview.chromium.org/12217027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181730 0039d316-1c4b-4281-b951-d872f2087c98
* Add retry function to AccountManagerHelper when called from foregroundclamy@chromium.org2013-02-062-49/+111
| | | | | | | | | | | | | On Android, after encountering an IO exception, the AccountManagerHelper method to get the authentication token from foreground now retries when the network is back. BUG=165687 Review URL: https://chromiumcodereview.appspot.com/12091069 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180961 0039d316-1c4b-4281-b951-d872f2087c98
* Register autofill sync types on mobilecjhopman@chromium.org2013-02-051-0/+8
| | | | | | | | | | | | | | This change registers the autofill and autofillProfile sync types on Android (in addition to desktop platforms). Also add an AUTOFILL type to ModelTypes. BUG=174232 Review URL: https://chromiumcodereview.appspot.com/12089025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180629 0039d316-1c4b-4281-b951-d872f2087c98
* Add password type to model types.yfriedman@chromium.org2013-01-301-0/+4
| | | | | | | | | | | | https://codereview.chromium.org/11946058/ added it to syncable types, but the constant is needed on the java side. BUG=113164 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12092034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179676 0039d316-1c4b-4281-b951-d872f2087c98