Chromium Code Reviews| Index: chrome/browser/sync/backend_migrator.cc |
| diff --git a/chrome/browser/sync/backend_migrator.cc b/chrome/browser/sync/backend_migrator.cc |
| index 72e711c60630011faa2982082b6d75646017a1d3..0b6034c9e05ff7c06206fc65545083b978131995 100644 |
| --- a/chrome/browser/sync/backend_migrator.cc |
| +++ b/chrome/browser/sync/backend_migrator.cc |
| @@ -101,22 +101,10 @@ bool BackendMigrator::TryStart() { |
| void BackendMigrator::RestartMigration() { |
| // We'll now disable any running types that need to be migrated. |
| ChangeState(DISABLING_TYPES); |
| - const ModelTypeSet full_set = service_->GetPreferredDataTypes(); |
| - const ModelTypeSet difference = Difference(full_set, to_migrate_); |
| - bool configure_with_nigori = !to_migrate_.Has(syncer::NIGORI); |
| SDVLOG(1) << "BackendMigrator disabling types " |
| - << ModelTypeSetToString(to_migrate_) << "; configuring " |
| - << ModelTypeSetToString(difference) |
| - << (configure_with_nigori ? " with nigori" : " without nigori"); |
| - |
| - // Add nigori for config or not based upon if the server told us to migrate |
| - // nigori or not. |
| - if (configure_with_nigori) { |
| - manager_->Configure(difference, syncer::CONFIGURE_REASON_MIGRATION); |
| - } else { |
| - manager_->ConfigureWithoutNigori(difference, |
| - syncer::CONFIGURE_REASON_MIGRATION); |
| - } |
| + << ModelTypeSetToString(to_migrate_); |
| + |
| + manager_->Purge(to_migrate_, syncer::CONFIGURE_REASON_MIGRATION); |
|
rlarocque
2012/08/14 22:33:06
This is a scary change.
I'm pretty sure it's a
|
| } |
| void BackendMigrator::OnConfigureDone( |