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

Unified Diff: sync/engine/syncer.cc

Issue 10454105: sync: Refactor per-datatype throttling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleaned up and rebased Created 8 years, 7 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
Index: sync/engine/syncer.cc
diff --git a/sync/engine/syncer.cc b/sync/engine/syncer.cc
index ac6b5eb787e354f94b2d5daab3f6ae9c1b631088..344851c48a0b30a9cd81d1fc5974d684e42607f3 100644
--- a/sync/engine/syncer.cc
+++ b/sync/engine/syncer.cc
@@ -16,6 +16,7 @@
#include "sync/engine/clear_data_command.h"
#include "sync/engine/commit.h"
#include "sync/engine/conflict_resolver.h"
+#include "sync/engine/throttled_data_type_tracker.h"
#include "sync/engine/download_updates_command.h"
#include "sync/engine/net/server_connection_manager.h"
#include "sync/engine/process_commit_response_command.h"
@@ -107,7 +108,8 @@ void Syncer::SyncShare(sessions::SyncSession* session,
switch (current_step) {
case SYNCER_BEGIN:
- session->context()->PruneUnthrottledTypes(base::TimeTicks::Now());
+ session->context()->throttled_data_type_tracker()->
+ PruneUnthrottledTypes(base::TimeTicks::Now());
session->SendEventNotification(SyncEngineEvent::SYNC_CYCLE_BEGIN);
next_step = CLEANUP_DISABLED_TYPES;

Powered by Google App Engine
This is Rietveld 408576698