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

Unified Diff: chrome/service/service_process_prefs.cc

Issue 90563003: Fix a race condition in preference metric reporting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Also filter 'empty loads' as in new run or corrupted pref file scenarios. Created 7 years 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 | « chrome/chrome_tests_unit.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/service_process_prefs.cc
diff --git a/chrome/service/service_process_prefs.cc b/chrome/service/service_process_prefs.cc
index c628a0b5e86b29c66b5b76879d1021c47b2e8033..d923185d86a56c384db1e4f455e4542f46355dab 100644
--- a/chrome/service/service_process_prefs.cc
+++ b/chrome/service/service_process_prefs.cc
@@ -5,12 +5,15 @@
#include "chrome/service/service_process_prefs.h"
#include "base/message_loop/message_loop_proxy.h"
+#include "base/prefs/pref_filter.h"
#include "base/values.h"
ServiceProcessPrefs::ServiceProcessPrefs(
const base::FilePath& pref_filename,
base::SequencedTaskRunner* task_runner)
- : prefs_(new JsonPrefStore(pref_filename, task_runner)) {
+ : prefs_(new JsonPrefStore(pref_filename,
+ task_runner,
+ scoped_ptr<PrefFilter>())) {
}
ServiceProcessPrefs::~ServiceProcessPrefs() {}
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698