| Index: chrome/browser/sync/test_profile_sync_service.cc
|
| diff --git a/chrome/browser/sync/test_profile_sync_service.cc b/chrome/browser/sync/test_profile_sync_service.cc
|
| index 8eb7365c43167193e29eb8eb95a8c8a83542d17a..f6528e7c75ffaa75bdff9812fcbdcfcdcbaa1447 100644
|
| --- a/chrome/browser/sync/test_profile_sync_service.cc
|
| +++ b/chrome/browser/sync/test_profile_sync_service.cc
|
| @@ -74,7 +74,6 @@ void SyncBackendHostForProfileSyncTest::InitCore(
|
| test_options.internal_components_factory =
|
| new TestInternalComponentsFactory(storage);
|
| SyncBackendHost::InitCore(test_options);
|
| - // TODO(akalin): Figure out a better way to do this.
|
| if (synchronous_init_) {
|
| // The SyncBackend posts a task to the current loop when
|
| // initialization completes.
|
| @@ -142,6 +141,21 @@ void SyncBackendHostForProfileSyncTest::SetInitialSyncEndedForAllTypes() {
|
| }
|
| }
|
|
|
| +void SyncBackendHostForProfileSyncTest::EmitOnNotificationsEnabled() {
|
| + frontend()->OnNotificationsEnabled();
|
| +}
|
| +
|
| +void SyncBackendHostForProfileSyncTest::EmitOnNotificationsDisabled(
|
| + syncer::NotificationsDisabledReason reason) {
|
| + frontend()->OnNotificationsDisabled(reason);
|
| +}
|
| +
|
| +void SyncBackendHostForProfileSyncTest::EmitOnIncomingNotification(
|
| + const syncer::ObjectIdPayloadMap& id_payloads,
|
| + const syncer::IncomingNotificationSource source) {
|
| + frontend()->OnIncomingNotification(id_payloads, source);
|
| +}
|
| +
|
| } // namespace browser_sync
|
|
|
| syncer::TestIdFactory* TestProfileSyncService::id_factory() {
|
|
|