Index: chrome/browser/sync/internal_api/sync_manager.cc |
diff --git a/chrome/browser/sync/internal_api/sync_manager.cc b/chrome/browser/sync/internal_api/sync_manager.cc |
index c0b9cb35ff7e9c075139b36b90fff849a036970b..3d8ab3bd1557a75044a9b4cc6ed521d7813d3c59 100644 |
--- a/chrome/browser/sync/internal_api/sync_manager.cc |
+++ b/chrome/browser/sync/internal_api/sync_manager.cc |
@@ -787,6 +787,9 @@ bool SyncManager::SyncInternal::Init( |
initialized_ = true; |
+ // The following calls check that initialized_ is true. |
+ BootstrapEncryption(restored_key_for_bootstrapping); |
+ |
// Notify that initialization is complete. |
ObserverList<SyncManager::Observer> temp_obs_list; |
CopyObservers(&temp_obs_list); |
@@ -794,10 +797,6 @@ bool SyncManager::SyncInternal::Init( |
OnInitializationComplete( |
WeakHandle<JsBackend>(weak_ptr_factory_.GetWeakPtr()))); |
- // The following calls check that initialized_ is true. |
- |
- BootstrapEncryption(restored_key_for_bootstrapping); |
- |
sync_notifier_->AddObserver(this); |
return signed_in; |