| Index: chrome/browser/sync/profile_sync_service.cc
|
| diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
|
| index 659c3121edf932ac446fa1edcbf2b0626df3d7de..75da4823d5c12fd74dd04ffdda2995a5c5653bb7 100644
|
| --- a/chrome/browser/sync/profile_sync_service.cc
|
| +++ b/chrome/browser/sync/profile_sync_service.cc
|
| @@ -392,7 +392,7 @@ void ProfileSyncService::InitializeBackend(bool delete_sync_data_folder) {
|
| }
|
|
|
| void ProfileSyncService::CreateBackend() {
|
| - backend_.reset(new SyncBackendHost(profile_));
|
| + backend_.reset(new SyncBackendHost(profile_->GetDebugName(), profile_));
|
| }
|
|
|
| bool ProfileSyncService::IsEncryptedDatatypeEnabled() const {
|
| @@ -604,11 +604,11 @@ void ProfileSyncService::OnUnrecoverableError(
|
| wizard_.Step(SyncSetupWizard::FATAL_ERROR);
|
|
|
| NotifyObservers();
|
| - LOG(ERROR) << "Unrecoverable error detected -- ProfileSyncService unusable."
|
| - << message;
|
| std::string location;
|
| from_here.Write(true, true, &location);
|
| - LOG(ERROR) << location;
|
| + LOG(ERROR)
|
| + << "Unrecoverable error detected at " << location
|
| + << " -- ProfileSyncService unusable: " << message;
|
|
|
| // Shut all data types down.
|
| MessageLoop::current()->PostTask(FROM_HERE,
|
| @@ -1227,7 +1227,9 @@ void ProfileSyncService::ConfigureDataTypeManager() {
|
|
|
| // We create the migrator at the same time.
|
| migrator_.reset(
|
| - new browser_sync::BackendMigrator(this, data_type_manager_.get()));
|
| + new browser_sync::BackendMigrator(
|
| + profile_->GetDebugName(), GetUserShare(),
|
| + this, data_type_manager_.get()));
|
| }
|
|
|
| syncable::ModelTypeSet types;
|
| @@ -1296,9 +1298,9 @@ void ProfileSyncService::LogUnsyncedItems(int level) const {
|
| << "initialized";
|
| }
|
|
|
| -bool ProfileSyncService::HasPendingBackendMigration() const {
|
| - return migrator_.get() &&
|
| - migrator_->state() != browser_sync::BackendMigrator::IDLE;
|
| +browser_sync::BackendMigrator*
|
| + ProfileSyncService::GetBackendMigratorForTest() {
|
| + return migrator_.get();
|
| }
|
|
|
| void ProfileSyncService::GetModelSafeRoutingInfo(
|
|
|