Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(400)

Unified Diff: chrome/browser/sync/test/integration/two_client_uss_sync_test.cc

Issue 2406163006: [Sync] Services can now always assume processor exists. (Closed)
Patch Set: Updates for Max. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/sync/device_info/device_info_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/test/integration/two_client_uss_sync_test.cc
diff --git a/chrome/browser/sync/test/integration/two_client_uss_sync_test.cc b/chrome/browser/sync/test/integration/two_client_uss_sync_test.cc
index 9035d31b2147fedc67b6fa66390f379b1ada7e4c..29aa0b837311c47b52bdf985254618f2529634bd 100644
--- a/chrome/browser/sync/test/integration/two_client_uss_sync_test.cc
+++ b/chrome/browser/sync/test/integration/two_client_uss_sync_test.cc
@@ -57,7 +57,10 @@ class TestModelTypeService : public FakeModelTypeService {
};
TestModelTypeService()
- : FakeModelTypeService(base::Bind(&ModelTypeChangeProcessor::Create)) {}
+ : FakeModelTypeService(base::Bind(&ModelTypeChangeProcessor::Create)) {
+ change_processor()->OnMetadataLoaded(syncer::SyncError(),
+ db().CreateMetadataBatch());
+ }
syncer::SyncError ApplySyncChanges(
std::unique_ptr<syncer::MetadataChangeList> metadata_changes,
@@ -68,11 +71,6 @@ class TestModelTypeService : public FakeModelTypeService {
return error;
}
- void OnChangeProcessorSet() override {
- change_processor()->OnMetadataLoaded(syncer::SyncError(),
- db().CreateMetadataBatch());
- }
-
void AddObserver(Observer* observer) { observers_.insert(observer); }
void RemoveObserver(Observer* observer) { observers_.erase(observer); }
« no previous file with comments | « no previous file | components/sync/device_info/device_info_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698