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

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: Fix 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..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(
« no previous file with comments | « sync/internal_api/debug_info_event_listener.h ('k') | sync/internal_api/js_sync_encryption_handler_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698