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

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

Issue 10167017: Fix some migration-related bugs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review changes Created 8 years, 8 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 | « chrome/browser/sync/backend_migrator.cc ('k') | chrome/browser/sync/profile_sync_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/backend_migrator_unittest.cc
diff --git a/chrome/browser/sync/backend_migrator_unittest.cc b/chrome/browser/sync/backend_migrator_unittest.cc
index 3dd8cbff06df53ff4039923253f51bfb6e769c7d..52cb19bb662bdfb9adfa286a2cfa77368f003312 100644
--- a/chrome/browser/sync/backend_migrator_unittest.cc
+++ b/chrome/browser/sync/backend_migrator_unittest.cc
@@ -47,7 +47,8 @@ class SyncBackendMigratorTest : public testing::Test {
migrator_.reset(
new BackendMigrator(
- "Profile0", test_user_share_.user_share(), service(), manager()));
+ "Profile0", test_user_share_.user_share(), service(), manager(),
+ base::Closure()));
SetUnsyncedTypes(syncable::ModelTypeSet());
}
@@ -76,20 +77,14 @@ class SyncBackendMigratorTest : public testing::Test {
syncable::ModelTypeSet requested_types) {
if (status == DataTypeManager::OK) {
DataTypeManager::ConfigureResult result(status, requested_types);
- content::NotificationService::current()->Notify(
- chrome::NOTIFICATION_SYNC_CONFIGURE_DONE,
- content::Source<DataTypeManager>(&manager_),
- content::Details<const DataTypeManager::ConfigureResult>(&result));
+ migrator_->OnConfigureDone(result);
} else {
std::list<SyncError> errors;
DataTypeManager::ConfigureResult result(
status,
requested_types,
errors);
- content::NotificationService::current()->Notify(
- chrome::NOTIFICATION_SYNC_CONFIGURE_DONE,
- content::Source<DataTypeManager>(&manager_),
- content::Details<const DataTypeManager::ConfigureResult>(&result));
+ migrator_->OnConfigureDone(result);
}
message_loop_.RunAllPending();
}
« no previous file with comments | « chrome/browser/sync/backend_migrator.cc ('k') | chrome/browser/sync/profile_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698