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

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: 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/internal_api/all_status.cc
diff --git a/sync/internal_api/all_status.cc b/sync/internal_api/all_status.cc
index 17c885da81e75364247de9db34342412546f00f5..be8a0c8e32f6213e82d4808120f4e8b1fb848345 100644
--- a/sync/internal_api/all_status.cc
+++ b/sync/internal_api/all_status.cc
@@ -137,6 +137,11 @@ void AllStatus::SetEncryptedTypes(syncable::ModelTypeSet types) {
status_.encrypted_types = types;
}
+void AllStatus::SetThrottledTypes(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