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

Unified Diff: sync/engine/sync_scheduler.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/engine/sync_scheduler.h ('k') | sync/engine/sync_scheduler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/sync_scheduler.cc
diff --git a/sync/engine/sync_scheduler.cc b/sync/engine/sync_scheduler.cc
index 1d1ddad98b7cc6713a19a39d2c434996f13bed38..23ad567ece3f14501936c19f7ae8a4fd40fb65ff 100644
--- a/sync/engine/sync_scheduler.cc
+++ b/sync/engine/sync_scheduler.cc
@@ -23,7 +23,7 @@
using base::TimeDelta;
using base::TimeTicks;
-namespace csync {
+namespace syncer {
using sessions::SyncSession;
using sessions::SyncSessionSnapshot;
@@ -35,22 +35,22 @@ using sync_pb::GetUpdatesCallerInfo;
namespace {
bool ShouldRequestEarlyExit(
- const csync::SyncProtocolError& error) {
+ const syncer::SyncProtocolError& error) {
switch (error.error_type) {
- case csync::SYNC_SUCCESS:
- case csync::MIGRATION_DONE:
- case csync::THROTTLED:
- case csync::TRANSIENT_ERROR:
+ case syncer::SYNC_SUCCESS:
+ case syncer::MIGRATION_DONE:
+ case syncer::THROTTLED:
+ case syncer::TRANSIENT_ERROR:
return false;
- case csync::NOT_MY_BIRTHDAY:
- case csync::CLEAR_PENDING:
+ case syncer::NOT_MY_BIRTHDAY:
+ case syncer::CLEAR_PENDING:
// If we send terminate sync early then |sync_cycle_ended| notification
// would not be sent. If there were no actions then |ACTIONABLE_ERROR|
// notification wouldnt be sent either. Then the UI layer would be left
// waiting forever. So assert we would send something.
- DCHECK(error.action != csync::UNKNOWN_ACTION);
+ DCHECK(error.action != syncer::UNKNOWN_ACTION);
return true;
- case csync::INVALID_CREDENTIAL:
+ case syncer::INVALID_CREDENTIAL:
// The notification for this is handled by PostAndProcessHeaders|.
// Server does no have to send any action for this.
return true;
@@ -63,8 +63,8 @@ bool ShouldRequestEarlyExit(
}
bool IsActionableError(
- const csync::SyncProtocolError& error) {
- return (error.action != csync::UNKNOWN_ACTION);
+ const syncer::SyncProtocolError& error) {
+ return (error.action != syncer::UNKNOWN_ACTION);
}
} // namespace
@@ -1141,4 +1141,4 @@ base::TimeDelta SyncScheduler::sessions_commit_delay() const {
#undef ENUM_CASE
-} // csync
+} // namespace syncer
« no previous file with comments | « sync/engine/sync_scheduler.h ('k') | sync/engine/sync_scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698