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

Unified Diff: sync/internal_api/all_status.cc

Issue 10454105: sync: Refactor per-datatype throttling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor fixes 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
Index: sync/internal_api/all_status.cc
diff --git a/sync/internal_api/all_status.cc b/sync/internal_api/all_status.cc
index a8a7efded510a0924c66dc07a0e520249404545e..b864ec5408b201b3abc10099c56c1c1dbece382f 100644
--- a/sync/internal_api/all_status.cc
+++ b/sync/internal_api/all_status.cc
@@ -139,6 +139,11 @@ void AllStatus::SetEncryptedTypes(syncable::ModelTypeSet types) {
status_.encrypted_types = types;
}
+void AllStatus::SetThrottledTypes(const syncable::ModelTypeSet& types) {
+ ScopedStatusLock lock(this);
+ status_.throttled_types = types;
+}
+
void AllStatus::SetCryptographerReady(bool ready) {
ScopedStatusLock lock(this);
status_.cryptographer_ready = ready;

Powered by Google App Engine
This is Rietveld 408576698