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

Unified Diff: chrome/browser/sync/glue/sync_backend_host.cc

Issue 7108067: [Sync] Ensure cryptographer ready before encrypting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Split bootstrap encryption and add ReloadNigori method Created 9 years, 6 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/glue/sync_backend_host.cc
diff --git a/chrome/browser/sync/glue/sync_backend_host.cc b/chrome/browser/sync/glue/sync_backend_host.cc
index 931721b957ed3fc7bf4712b1a1a2a4fd3076575f..39f78aef6666d72ecd43c4a0ac9de685ad3887aa 100644
--- a/chrome/browser/sync/glue/sync_backend_host.cc
+++ b/chrome/browser/sync/glue/sync_backend_host.cc
@@ -978,6 +978,9 @@ void SyncBackendHost::HandleInitializationCompletedOnFrontendLoop() {
if (!frontend_)
return;
syncapi_initialized_ = true;
+ // Now that the syncapi is intiialized, we can update the cryptographer (and
+ // can handle any ON_PASSPHRASE_REQUIRED notifications that may arise).
+ core_->syncapi()->ReloadNigori();
tim (not reviewing) 2011/06/14 01:32:58 Im trying to think of a better name for this... M
Nicolas Zea 2011/06/14 16:52:38 Done.
frontend_->OnBackendInitialized();
}

Powered by Google App Engine
This is Rietveld 408576698