diff options
author | rlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-21 04:16:33 +0000 |
---|---|---|
committer | rlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-21 04:16:33 +0000 |
commit | 16b85e8a64fd14f425d9b12c8b6802d5e41c1853 (patch) | |
tree | 3c5ddbcef5b4c05824a6c197ae558c12ac027f75 /sync/sync.gyp | |
parent | 6bf30d0a453f8647c63d261a2f603a2c3939566b (diff) | |
download | chromium_src-16b85e8a64fd14f425d9b12c8b6802d5e41c1853.zip chromium_src-16b85e8a64fd14f425d9b12c8b6802d5e41c1853.tar.gz chromium_src-16b85e8a64fd14f425d9b12c8b6802d5e41c1853.tar.bz2 |
Sync: Add DeviceInfo's ChangeProcessor
This is the long-awaited change to enable DeviceInfo tracking.
Long ago (r161496) we committed code to support the DeviceInfo type, but
we had to leave this code disabled until the server was ready to support
the new type. That support has now been added.
This change includes a very special kind of ChangeProcessor named
SyncedDeviceTracker. It is the only ChangeProcessor that is owned by
the sync thread. The SyncBackendHost creates and initializes it during
backend intialization and deletes it before the UserShare it references
is destroyed. As part of its initialization, the SyncedDeviceTracker
will update the DeviceInfo entry for the current device.
The SyncedDeviceTracker could support sending notifications to any
interested listeners when new or update DeviceInfo information arrives,
but this functionality has not been implemented yet.
Also included are:
- Tests for the SyncedDeviceTracker
- A MockTransactionObserver to support these tests
- A cache_guid() accessor on the SyncManager, used to initialize the
SyncedDeviceTracker
- Remove support for default constructing a DeviceInfo object
BUG=122825
Review URL: https://chromiumcodereview.appspot.com/11360259
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168972 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/sync.gyp')
-rw-r--r-- | sync/sync.gyp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sync/sync.gyp b/sync/sync.gyp index de8e734..ad9a684 100644 --- a/sync/sync.gyp +++ b/sync/sync.gyp @@ -139,8 +139,8 @@ 'syncable/model_type.cc', 'syncable/mutable_entry.cc', 'syncable/mutable_entry.h', - 'syncable/nigori_handler.h', 'syncable/nigori_handler.cc', + 'syncable/nigori_handler.h', 'syncable/nigori_util.cc', 'syncable/nigori_util.h', 'syncable/on_disk_directory_backing_store.cc', @@ -498,6 +498,8 @@ 'test/fake_sync_encryption_handler.cc', 'test/fake_extensions_activity_monitor.cc', 'test/fake_extensions_activity_monitor.h', + 'test/test_transaction_observer.cc', + 'test/test_transaction_observer.h', 'test/null_directory_change_delegate.cc', 'test/null_directory_change_delegate.h', 'test/null_transaction_observer.cc', |