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

Unified Diff: chrome/browser/sync/test_profile_sync_service.cc

Issue 10834351: [sync] Divorce DataTypeManager from NotificationService notifications by creating a new DataTypeMa… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
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 a51ecb6be338fea7bc320b13c07140063b5ce64a..173cc1c41860fdf1a0657c1cba73cc61a7a6a0b1 100644
--- a/chrome/browser/sync/test_profile_sync_service.cc
+++ b/chrome/browser/sync/test_profile_sync_service.cc
@@ -208,15 +208,10 @@ void TestProfileSyncService::OnBackendInitialized(
}
}
-void TestProfileSyncService::Observe(
- int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) {
- ProfileSyncService::Observe(type, source, details);
- if (type == chrome::NOTIFICATION_SYNC_CONFIGURE_DONE &&
- !synchronous_sync_configuration_) {
+void TestProfileSyncService::OnConfigureDone() {
+ ProfileSyncService::OnConfigureDone();
+ if (!synchronous_sync_configuration_)
MessageLoop::current()->Quit();
- }
}
UserShare* TestProfileSyncService::GetUserShare() const {

Powered by Google App Engine
This is Rietveld 408576698