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

Unified Diff: chrome/browser/sync/engine/all_status.cc

Issue 7550023: [Sync] Add passphrase/encryption info to chrome://sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix restart case Created 9 years, 5 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/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();

Powered by Google App Engine
This is Rietveld 408576698