| 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..d88981afa6f2909f5e9912cab2816041edd12fa5 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,19 +90,17 @@ 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) {
|
| - cryptographer_ready_ = ready;
|
| -}
|
| -
|
| void DebugInfoEventListener::OnNudgeFromDatatype(ModelType datatype) {
|
| sync_pb::DebugEventInfo event_info;
|
| event_info.set_nudging_datatype(
|
|
|