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

Unified Diff: sync/engine/get_commit_ids_command.cc

Issue 10454105: sync: Refactor per-datatype throttling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/all_status.cc ('k') | sync/engine/sync_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/get_commit_ids_command.cc
diff --git a/sync/engine/get_commit_ids_command.cc b/sync/engine/get_commit_ids_command.cc
index a09d5d7a49a452801fd86318ecce33a32a2a3010..815dca19d48e970747ba14229b24b632f3671efc 100644
--- a/sync/engine/get_commit_ids_command.cc
+++ b/sync/engine/get_commit_ids_command.cc
@@ -10,6 +10,7 @@
#include "sync/engine/nigori_util.h"
#include "sync/engine/syncer_util.h"
+#include "sync/engine/throttled_data_type_tracker.h"
#include "sync/syncable/syncable.h"
#include "sync/util/cryptographer.h"
@@ -50,7 +51,7 @@ SyncerError GetCommitIdsCommand::ExecuteImpl(SyncSession* session) {
};
const syncable::ModelTypeSet throttled_types =
- session->context()->GetThrottledTypes();
+ session->context()->throttled_data_type_tracker()->GetThrottledTypes();
// We filter out all unready entries from the set of unsynced handles. This
// new set of ready and unsynced items (which excludes throttled items as
// well) is then what we use to determine what is a candidate for commit.
« no previous file with comments | « sync/engine/all_status.cc ('k') | sync/engine/sync_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698