Don't perform a full sync for an initialization request.
commit46a31aecd91b2c9705abe4148598a5d80ce444aa
authormaxbogue <maxbogue@chromium.org>
Tue, 2 Dec 2014 23:14:11 +0000 (2 15:14 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 2 Dec 2014 23:15:25 +0000 (2 23:15 +0000)
tree787ae60989d8405d5dd48ec5fe988b5738d30648
parentb81089b926a576938d3798056c932b815f047056
Don't perform a full sync for an initialization request.

Initialization syncs do not have a timeout, so if an error occurred
during it the wakelock ended up being held indefinitely.

Also introduce a backup timeout for the sync request.

Googlers, see http://b/17202933.

Review URL: https://codereview.chromium.org/764653002

Cr-Commit-Position: refs/heads/master@{#306483}
chrome/android/java/src/org/chromium/chrome/browser/sync/ChromiumSyncAdapter.java
chrome/android/javatests/src/org/chromium/chrome/browser/sync/ChromiumSyncAdapterTest.java