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

Unified Diff: chrome/browser/sync/sessions/sync_session_context.cc

Issue 8919021: [Sync] Rename ModelEnumSet to ModelTypeSet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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: chrome/browser/sync/sessions/sync_session_context.cc
diff --git a/chrome/browser/sync/sessions/sync_session_context.cc b/chrome/browser/sync/sessions/sync_session_context.cc
index fdc9e7d1bdac16134e2416e68916c70f1ac0ac05..922dd89b02e2ac9b86d9d18353355b410309f86e 100644
--- a/chrome/browser/sync/sessions/sync_session_context.cc
+++ b/chrome/browser/sync/sessions/sync_session_context.cc
@@ -49,9 +49,9 @@ SyncSessionContext::~SyncSessionContext() {
}
}
-void SyncSessionContext::SetUnthrottleTime(syncable::ModelEnumSet types,
+void SyncSessionContext::SetUnthrottleTime(syncable::ModelTypeSet types,
const base::TimeTicks& time) {
- for (syncable::ModelEnumSet::Iterator it = types.First();
+ for (syncable::ModelTypeSet::Iterator it = types.First();
it.Good(); it.Inc()) {
unthrottle_times_[it.Get()] = time;
}
@@ -74,8 +74,8 @@ void SyncSessionContext::PruneUnthrottledTypes(const base::TimeTicks& time) {
// TODO(lipalani): Call this function and fill the return values in snapshot
// so it could be shown in the about:sync page.
-syncable::ModelEnumSet SyncSessionContext::GetThrottledTypes() const {
- syncable::ModelEnumSet types;
+syncable::ModelTypeSet SyncSessionContext::GetThrottledTypes() const {
+ syncable::ModelTypeSet types;
for (UnthrottleTimes::const_iterator it = unthrottle_times_.begin();
it != unthrottle_times_.end();
++it) {
« no previous file with comments | « chrome/browser/sync/sessions/sync_session_context.h ('k') | chrome/browser/sync/sessions/sync_session_context_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698