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

Unified Diff: chrome/common/important_file_writer.cc

Issue 6713033: Tweak commit interval for ScheduleSavePersistentPrefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/important_file_writer.cc
diff --git a/chrome/common/important_file_writer.cc b/chrome/common/important_file_writer.cc
index f5c5fc115c1dcee81bc86f71d7c32235b8264c76..26a0bc0a6555d6c43d0c71790dc9540b6bfa3ced 100644
--- a/chrome/common/important_file_writer.cc
+++ b/chrome/common/important_file_writer.cc
@@ -21,7 +21,11 @@ using base::TimeDelta;
namespace {
-const int kDefaultCommitIntervalMs = 10000;
+#ifdef NDEBUG
Paweł Hajdan Jr. 2011/03/18 19:59:03 I'm not a fan of different behavior in debug vs. r
Denis Lagno 2011/03/21 01:18:53 I removed dependency on NDEBUG but instead added d
+const int kDefaultCommitIntervalMs = 2000;
Paweł Hajdan Jr. 2011/03/18 19:59:03 I'm not sure whether decreasing this interval is t
brettw 2011/03/18 20:30:21 If we do keep this different, there should be a co
Denis Lagno 2011/03/21 01:18:53 Done.
Denis Lagno 2011/03/21 01:18:53 original problem I've encountered was the fact tha
+#else
+const int kDefaultCommitIntervalMs = 100000;
+#endif
class WriteToDiskTask : public Task {
public:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698