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

Unified Diff: sync/syncable/directory.cc

Issue 10947039: Removed safe worker calculation from SyncScheduler. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 3 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
« sync/sessions/sync_session.cc ('K') | « sync/sessions/sync_session.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/directory.cc
diff --git a/sync/syncable/directory.cc b/sync/syncable/directory.cc
index 644a4e20eefc5913b2a29365d807d83484b7d295..851bdddcf1e288a8140dd4905bdab7c61a0283f8 100644
--- a/sync/syncable/directory.cc
+++ b/sync/syncable/directory.cc
@@ -148,8 +148,12 @@ Directory::Directory(
report_unrecoverable_error_function),
unrecoverable_error_set_(false),
nigori_handler_(nigori_handler),
- cryptographer_(cryptographer),
- invariant_check_level_(VERIFY_CHANGES) {
+ cryptographer_(cryptographer) {
rlarocque 2012/09/19 20:15:33 This change doesn't belong in this patch.
+ //Perform full invariant checking for tests and the debug build.
+ if(DCHECK_IS_ON())
+ invariant_check_level_ = FULL_DB_VERIFICATION;
+ else
+ invariant_check_level_ = VERIFY_CHANGES;
}
Directory::~Directory() {
« sync/sessions/sync_session.cc ('K') | « sync/sessions/sync_session.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698