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

Unified Diff: sync/engine/throttled_data_type_tracker.cc

Issue 10696087: [Sync] Move ModelType and related classes to 'syncer' namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort headers, update copyrights 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/throttled_data_type_tracker.h ('k') | sync/engine/throttled_data_type_tracker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/throttled_data_type_tracker.cc
diff --git a/sync/engine/throttled_data_type_tracker.cc b/sync/engine/throttled_data_type_tracker.cc
index c41cb6f6afed986f3cb0c8a3ea8b389fb38eef87..42d1246f37f0c46430177327447ad4c6c92e2526 100644
--- a/sync/engine/throttled_data_type_tracker.cc
+++ b/sync/engine/throttled_data_type_tracker.cc
@@ -12,15 +12,15 @@ namespace syncer {
ThrottledDataTypeTracker::ThrottledDataTypeTracker(AllStatus *allstatus)
: allstatus_(allstatus) {
if (allstatus_) {
- allstatus_->SetThrottledTypes(syncable::ModelTypeSet());
+ allstatus_->SetThrottledTypes(syncer::ModelTypeSet());
}
}
ThrottledDataTypeTracker::~ThrottledDataTypeTracker() { }
-void ThrottledDataTypeTracker::SetUnthrottleTime(syncable::ModelTypeSet types,
+void ThrottledDataTypeTracker::SetUnthrottleTime(syncer::ModelTypeSet types,
const base::TimeTicks& time) {
- for (syncable::ModelTypeSet::Iterator it = types.First();
+ for (syncer::ModelTypeSet::Iterator it = types.First();
it.Good(); it.Inc()) {
unthrottle_times_[it.Get()] = time;
}
@@ -60,8 +60,8 @@ void ThrottledDataTypeTracker::PruneUnthrottledTypes(
}
}
-syncable::ModelTypeSet ThrottledDataTypeTracker::GetThrottledTypes() const {
- syncable::ModelTypeSet types;
+syncer::ModelTypeSet ThrottledDataTypeTracker::GetThrottledTypes() const {
+ syncer::ModelTypeSet types;
for (UnthrottleTimes::const_iterator it = unthrottle_times_.begin();
it != unthrottle_times_.end(); ++it) {
types.Put(it->first);
« no previous file with comments | « sync/engine/throttled_data_type_tracker.h ('k') | sync/engine/throttled_data_type_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698