diff options
author | lipalani@chromium.org <lipalani@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-16 01:44:45 +0000 |
---|---|---|
committer | lipalani@chromium.org <lipalani@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-16 01:44:45 +0000 |
commit | 58d1666040e4750a0d5662d35b44ab22c891c57c (patch) | |
tree | 97f884e5e0396f8cde5e4792a147c2b95a3e8285 /chrome/browser/sync/glue/sync_backend_host_mock.h | |
parent | 487d1730d922bf933e332b997fda6796c3b0da5b (diff) | |
download | chromium_src-58d1666040e4750a0d5662d35b44ab22c891c57c.zip chromium_src-58d1666040e4750a0d5662d35b44ab22c891c57c.tar.gz chromium_src-58d1666040e4750a0d5662d35b44ab22c891c57c.tar.bz2 |
Currently chrome sync subscribes to notifications on all datatypes regardless whether they are synced or not.
This change list fixes that by subscribing to syncing datatypes only.
Implementation:
Whenever the data type are chosen by the user the syncapi is informed of the change by |data_type_manager_impl| class(in the UI thread). Syncapi then notifies the |server_notifier_thread| by means of a new API, on the sync core thread. |server_notifier_thread| then performs the work of notifying the tango servers on its worker thread.
BUG=69477
TEST=
Review URL: http://codereview.chromium.org/6362006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75048 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/glue/sync_backend_host_mock.h')
-rw-r--r-- | chrome/browser/sync/glue/sync_backend_host_mock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/sync/glue/sync_backend_host_mock.h b/chrome/browser/sync/glue/sync_backend_host_mock.h index 16f2594..12c6df1 100644 --- a/chrome/browser/sync/glue/sync_backend_host_mock.h +++ b/chrome/browser/sync/glue/sync_backend_host_mock.h @@ -27,6 +27,7 @@ class SyncBackendHostMock : public SyncBackendHost { MOCK_METHOD0(RequestPause, bool()); MOCK_METHOD0(RequestResume, bool()); MOCK_METHOD0(StartSyncingWithServer, void()); + MOCK_METHOD1(UpdateEnabledTypes, void(const syncable::ModelTypeSet&)); }; } // namespace browser_sync |