diff options
author | yfriedman@chromium.org <yfriedman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-02 01:30:18 +0000 |
---|---|---|
committer | yfriedman@chromium.org <yfriedman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-02 01:30:18 +0000 |
commit | 061e58f33ff328a1f322e40f60354c1ca69a7239 (patch) | |
tree | accc8c93bd0347c044162edb8a2496b1b1fadf6b /sync | |
parent | 00ac3f0f62d3aa1bd99897aad587a8c082593360 (diff) | |
download | chromium_src-061e58f33ff328a1f322e40f60354c1ca69a7239.zip chromium_src-061e58f33ff328a1f322e40f60354c1ca69a7239.tar.gz chromium_src-061e58f33ff328a1f322e40f60354c1ca69a7239.tar.bz2 |
[Android] Fix bug in sense of setting isSyncable.
The API specifies that >0 means syncable is true. After
https://codereview.chromium.org/16092014/ when Android sync settings
change, we have to read-back values to make sure we have the right
settings. This started causing tests to fail as we stored the wrong
value.
BUG=238506
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/18429002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209569 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync')
-rw-r--r-- | sync/test/android/javatests/src/org/chromium/sync/test/util/MockSyncContentResolverDelegate.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sync/test/android/javatests/src/org/chromium/sync/test/util/MockSyncContentResolverDelegate.java b/sync/test/android/javatests/src/org/chromium/sync/test/util/MockSyncContentResolverDelegate.java index e201a63..e7fc33d 100644 --- a/sync/test/android/javatests/src/org/chromium/sync/test/util/MockSyncContentResolverDelegate.java +++ b/sync/test/android/javatests/src/org/chromium/sync/test/util/MockSyncContentResolverDelegate.java @@ -105,7 +105,7 @@ public class MockSyncContentResolverDelegate implements SyncContentResolverDeleg mSyncAutomaticallyMap.remove(createKey(account, authority)); break; case 1: - mSyncAutomaticallyMap.put(createKey(account, authority), false); + mSyncAutomaticallyMap.put(createKey(account, authority), true); break; default: throw new IllegalArgumentException("Unable to understand syncable argument: " + |