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

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

Issue 8416008: [Sync] Fix dcheck when setting sync encryption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index 123c80fecbb0955583245862c980fdb43f6ac0e1..be283205517485766a3ce6cb3454948ada94ed9b 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -1340,7 +1340,7 @@ void ProfileSyncService::SetEncryptEverything(bool encrypt_everything) {
encryption_pending_ = encrypt_everything;
// Callers shouldn't try to disable encrypt everything once it has
// already succeeded.
- DCHECK(!encrypt_everything_);
+ DCHECK(encrypt_everything || !encrypt_everything_);
akalin 2011/10/27 20:11:34 this DCHECK should probably go above encryption_pe
Nicolas Zea 2011/10/27 20:54:10 Done.
}
bool ProfileSyncService::encryption_pending() const {
« 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