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

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

Issue 7847010: Fix WaitForTypeEncryption race condition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_service_harness.cc
diff --git a/chrome/browser/sync/profile_sync_service_harness.cc b/chrome/browser/sync/profile_sync_service_harness.cc
index 881c7256a5deedf2fab0b8467651b7529e4b8061..1fd917664b074fe21c884bd295020c9897c744af 100644
--- a/chrome/browser/sync/profile_sync_service_harness.cc
+++ b/chrome/browser/sync/profile_sync_service_harness.cc
@@ -1002,8 +1002,8 @@ bool ProfileSyncServiceHarness::EnableEncryptionForType(
bool ProfileSyncServiceHarness::WaitForTypeEncryption(
syncable::ModelType type) {
- if (IsSynced() &&
- IsTypeEncrypted(type) &&
+ if (IsTypeEncrypted(type) &&
akalin 2011/09/22 18:12:05 Can you add a comment for this? This can easily b
rlarocque 2011/09/22 19:05:58 Done.
+ IsSynced() &&
GetLastSessionSnapshot()->num_conflicting_updates == 0) {
// Encryption is already complete for |type|; do not wait.
return true;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698