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

Unified Diff: sync/internal_api/debug_info_event_listener.cc

Issue 10827266: [Sync] Add SyncEncryptionHandler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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: sync/internal_api/debug_info_event_listener.cc
diff --git a/sync/internal_api/debug_info_event_listener.cc b/sync/internal_api/debug_info_event_listener.cc
index b7e3cda8f8728ec31c8e393d8d395b128fb44856..175c892f254910563c6be85d172971950e76dda0 100644
--- a/sync/internal_api/debug_info_event_listener.cc
+++ b/sync/internal_api/debug_info_event_listener.cc
@@ -4,6 +4,8 @@
#include "sync/internal_api/debug_info_event_listener.h"
+#include "sync/util/cryptographer.h"
+
namespace syncer {
using sessions::SyncSessionSnapshot;
@@ -88,13 +90,19 @@ void DebugInfoEventListener::OnEncryptionComplete() {
CreateAndAddEvent(sync_pb::DebugEventInfo::ENCRYPTION_COMPLETE);
}
+void DebugInfoEventListener::OnCryptographerStateChanged(
+ Cryptographer* cryptographer) {
+ cryptographer_has_pending_keys_ = cryptographer->has_pending_keys();
+ cryptographer_ready_ = cryptographer->is_ready();
+}
+
void DebugInfoEventListener::OnActionableError(
const SyncProtocolError& sync_error) {
CreateAndAddEvent(sync_pb::DebugEventInfo::ACTIONABLE_ERROR);
}
void DebugInfoEventListener::SetCrytographerHasPendingKeys(bool pending_keys) {
- cryptographer_has_pending_keys_ = pending_keys;
+
}
void DebugInfoEventListener::SetCryptographerReady(bool ready) {

Powered by Google App Engine
This is Rietveld 408576698