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

Unified Diff: sync/tools/sync_listen_notifications.cc

Issue 10698014: [Sync] Rename csync namespace to syncer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/tools/sync_listen_notifications.cc
diff --git a/sync/tools/sync_listen_notifications.cc b/sync/tools/sync_listen_notifications.cc
index ad0608079effd6f387c8408ccf8d35d8d0f55ea8..9dff26ac12ff3d8ea6c44ce5a40872b7843346ea 100644
--- a/sync/tools/sync_listen_notifications.cc
+++ b/sync/tools/sync_listen_notifications.cc
@@ -34,7 +34,7 @@
namespace {
// Class to print received notifications events.
-class NotificationPrinter : public csync::SyncNotifierObserver {
+class NotificationPrinter : public syncer::SyncNotifierObserver {
public:
NotificationPrinter() {}
virtual ~NotificationPrinter() {}
@@ -44,17 +44,17 @@ class NotificationPrinter : public csync::SyncNotifierObserver {
}
virtual void OnNotificationsDisabled(
- csync::NotificationsDisabledReason reason) OVERRIDE {
+ syncer::NotificationsDisabledReason reason) OVERRIDE {
LOG(INFO) << "Notifications disabled with reason "
- << csync::NotificationsDisabledReasonToString(reason);
+ << syncer::NotificationsDisabledReasonToString(reason);
}
virtual void OnIncomingNotification(
const syncable::ModelTypePayloadMap& type_payloads,
- csync::IncomingNotificationSource source) OVERRIDE {
+ syncer::IncomingNotificationSource source) OVERRIDE {
for (syncable::ModelTypePayloadMap::const_iterator it =
type_payloads.begin(); it != type_payloads.end(); ++it) {
- LOG(INFO) << (source == csync::REMOTE_NOTIFICATION ?
+ LOG(INFO) << (source == syncer::REMOTE_NOTIFICATION ?
"Remote" : "Local")
<< " Notification: type = "
<< syncable::ModelTypeToString(it->first)
@@ -68,21 +68,21 @@ class NotificationPrinter : public csync::SyncNotifierObserver {
class NullInvalidationStateTracker
: public base::SupportsWeakPtr<NullInvalidationStateTracker>,
- public csync::InvalidationStateTracker {
+ public syncer::InvalidationStateTracker {
public:
NullInvalidationStateTracker() {}
virtual ~NullInvalidationStateTracker() {}
- virtual csync::InvalidationVersionMap
+ virtual syncer::InvalidationVersionMap
GetAllMaxVersions() const OVERRIDE {
- return csync::InvalidationVersionMap();
+ return syncer::InvalidationVersionMap();
}
virtual void SetMaxVersion(
const invalidation::ObjectId& id,
int64 max_invalidation_version) OVERRIDE {
LOG(INFO) << "Setting max invalidation version for "
- << csync::ObjectIdToString(id) << " to "
+ << syncer::ObjectIdToString(id) << " to "
<< max_invalidation_version;
}
@@ -200,7 +200,7 @@ int main(int argc, char* argv[]) {
"[--%s=host:port] [--%s] [--%s]\n"
"[--%s=(server|p2p)]\n\n"
"Run chrome and set a breakpoint on\n"
- "csync::SyncManager::SyncInternal::UpdateCredentials() "
+ "syncer::SyncManager::SyncInternal::UpdateCredentials() "
"after logging into\n"
"sync to get the token to pass into this utility.\n",
argv[0],
@@ -216,10 +216,10 @@ int main(int argc, char* argv[]) {
new MyTestURLRequestContextGetter(io_thread.message_loop_proxy()));
const char kClientInfo[] = "sync_listen_notifications";
NullInvalidationStateTracker null_invalidation_state_tracker;
- csync::SyncNotifierFactory sync_notifier_factory(
+ syncer::SyncNotifierFactory sync_notifier_factory(
notifier_options, kClientInfo,
null_invalidation_state_tracker.AsWeakPtr());
- scoped_ptr<csync::SyncNotifier> sync_notifier(
+ scoped_ptr<syncer::SyncNotifier> sync_notifier(
sync_notifier_factory.CreateSyncNotifier());
NotificationPrinter notification_printer;
sync_notifier->AddObserver(&notification_printer);

Powered by Google App Engine
This is Rietveld 408576698