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

Unified Diff: sync/internal_api/debug_info_event_listener.cc

Issue 10698014: [Sync] Rename csync namespace to syncer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 6 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 40c0e9eb54d099455bb2902723af756d0d4dc6ef..27b6a1022973ce0e57c69cb72dcfd725c9bc66b7 100644
--- a/sync/internal_api/debug_info_event_listener.cc
+++ b/sync/internal_api/debug_info_event_listener.cc
@@ -4,8 +4,8 @@
#include "sync/internal_api/debug_info_event_listener.h"
-using csync::sessions::SyncSessionSnapshot;
-namespace csync {
+using syncer::sessions::SyncSessionSnapshot;
+namespace syncer {
DebugInfoEventListener::DebugInfoEventListener()
: events_dropped_(false),
@@ -44,18 +44,18 @@ void DebugInfoEventListener::OnSyncCycleCompleted(
}
void DebugInfoEventListener::OnInitializationComplete(
- const csync::WeakHandle<csync::JsBackend>& js_backend,
+ const syncer::WeakHandle<syncer::JsBackend>& js_backend,
bool success) {
CreateAndAddEvent(sync_pb::DebugEventInfo::INITIALIZATION_COMPLETE);
}
void DebugInfoEventListener::OnConnectionStatusChange(
- csync::ConnectionStatus status) {
+ syncer::ConnectionStatus status) {
CreateAndAddEvent(sync_pb::DebugEventInfo::CONNECTION_STATUS_CHANGE);
}
void DebugInfoEventListener::OnPassphraseRequired(
- csync::PassphraseRequiredReason reason,
+ syncer::PassphraseRequiredReason reason,
const sync_pb::EncryptedData& pending_keys) {
CreateAndAddEvent(sync_pb::DebugEventInfo::PASSPHRASE_REQUIRED);
}
@@ -88,7 +88,7 @@ void DebugInfoEventListener::OnEncryptionComplete() {
}
void DebugInfoEventListener::OnActionableError(
- const csync::SyncProtocolError& sync_error) {
+ const syncer::SyncProtocolError& sync_error) {
CreateAndAddEvent(sync_pb::DebugEventInfo::ACTIONABLE_ERROR);
}
@@ -124,7 +124,7 @@ void DebugInfoEventListener::OnIncomingNotification(
void DebugInfoEventListener::GetAndClearDebugInfo(
sync_pb::DebugInfo* debug_info) {
- DCHECK(events_.size() <= csync::kMaxEntries);
+ DCHECK(events_.size() <= syncer::kMaxEntries);
while (!events_.empty()) {
sync_pb::DebugEventInfo* event_info = debug_info->add_events();
const sync_pb::DebugEventInfo& debug_event_info = events_.front();
@@ -149,7 +149,7 @@ void DebugInfoEventListener::CreateAndAddEvent(
void DebugInfoEventListener::AddEventToQueue(
const sync_pb::DebugEventInfo& event_info) {
- if (events_.size() >= csync::kMaxEntries) {
+ if (events_.size() >= syncer::kMaxEntries) {
DVLOG(1) << "DebugInfoEventListener::AddEventToQueue Dropping an old event "
<< "because of full queue";
@@ -158,4 +158,4 @@ void DebugInfoEventListener::AddEventToQueue(
}
events_.push(event_info);
}
-} // namespace csync
+} // namespace syncer
« no previous file with comments | « sync/internal_api/debug_info_event_listener.h ('k') | sync/internal_api/debug_info_event_listener_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698