Index: chrome/browser/sync/engine/all_status.cc |
diff --git a/chrome/browser/sync/engine/all_status.cc b/chrome/browser/sync/engine/all_status.cc |
index 2c2c37a7f09233a285cdd761a68ca9e6631558a7..770713913609d5fc1b08578cf9d933d00490e6aa 100644 |
--- a/chrome/browser/sync/engine/all_status.cc |
+++ b/chrome/browser/sync/engine/all_status.cc |
@@ -21,6 +21,8 @@ static const sync_api::SyncManager::Status init_status = |
AllStatus::AllStatus() : status_(init_status) { |
status_.initial_sync_ended = true; |
status_.notifications_enabled = false; |
+ status_.cryptographer_ready = false; |
+ status_.encrypt_everything = false; |
} |
AllStatus::~AllStatus() { |
@@ -165,6 +167,16 @@ void AllStatus::IncrementNotificationsReceived() { |
++status_.notifications_received; |
} |
+void AllStatus::SetEncryptEverything(bool everything) { |
+ ScopedStatusLock lock(this); |
+ status_.encrypt_everything = everything; |
+} |
+ |
+void AllStatus::SetCryptographerReady(bool ready) { |
+ ScopedStatusLock lock(this); |
+ status_.cryptographer_ready = ready; |
+} |
+ |
ScopedStatusLock::ScopedStatusLock(AllStatus* allstatus) |
: allstatus_(allstatus) { |
allstatus->mutex_.Acquire(); |