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

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: 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
« no previous file with comments | « sync/test/sessions/test_scoped_session_event_listener.h ('k') | sync/util/cryptographer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/tools/sync_listen_notifications.cc
diff --git a/sync/tools/sync_listen_notifications.cc b/sync/tools/sync_listen_notifications.cc
index 0b0f0606a5fc98ca64c9b60ff75847c182d04326..71ea3b582ea64543b35deb6ea21a9ef3940daccc 100644
--- a/sync/tools/sync_listen_notifications.cc
+++ b/sync/tools/sync_listen_notifications.cc
@@ -39,7 +39,7 @@
namespace {
// Class to print received notifications events.
-class NotificationPrinter : public csync::SyncNotifierObserver {
+class NotificationPrinter : public syncer::SyncNotifierObserver {
public:
NotificationPrinter() {}
virtual ~NotificationPrinter() {}
@@ -49,17 +49,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)
@@ -73,21 +73,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;
}
@@ -208,7 +208,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],
@@ -228,10 +228,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);
« no previous file with comments | « sync/test/sessions/test_scoped_session_event_listener.h ('k') | sync/util/cryptographer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698