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

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: Restore expectations in DTMImpl unittest + Treat observer_ as const 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..2db4f86ff72dfee84dcce8c593523d8c9e8fb546 100644
--- a/chrome/browser/sync/test_profile_sync_service.cc
+++ b/chrome/browser/sync/test_profile_sync_service.cc
@@ -208,15 +208,11 @@ 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(
+ const browser_sync::DataTypeManager::ConfigureResult& result) {
+ ProfileSyncService::OnConfigureDone(result);
+ if (!synchronous_sync_configuration_)
MessageLoop::current()->Quit();
- }
}
UserShare* TestProfileSyncService::GetUserShare() const {
« no previous file with comments | « chrome/browser/sync/test_profile_sync_service.h ('k') | chrome/browser/ui/webui/ntp/foreign_session_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698