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

Issue 2372663003: Allow ImportantFileWriter to take in a pre-write callback. (Closed)

Created:
4 years, 2 months ago by proberge
Modified:
4 years, 2 months ago
Reviewers:
gab, dcheng
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow ImportantFileWriter to take in a pre-write callback. This is in addition to the existing post-write callback. Also move JsonPrefStore's registration method from public to private and make SerializeData call it. The PrefHashFilter currently returns a pair of empty callbacks. BUG=624858 Committed: https://crrev.com/c503d69650b9ecb3dbe45c44af03b3af8d347250 Cr-Commit-Position: refs/heads/master@{#421612}

Patch Set 1 #

Patch Set 2 : Add a WaitableEvent to fix a race condition in CallbackRunsOnWriterThread #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -115 lines) Patch
M base/files/important_file_writer.h View 2 chunks +12 lines, -9 lines 0 comments Download
M base/files/important_file_writer.cc View 3 chunks +17 lines, -9 lines 0 comments Download
M base/files/important_file_writer_unittest.cc View 1 6 chunks +51 lines, -24 lines 0 comments Download
M components/prefs/json_pref_store.h View 6 chunks +13 lines, -7 lines 0 comments Download
M components/prefs/json_pref_store.cc View 4 chunks +31 lines, -23 lines 0 comments Download
M components/prefs/json_pref_store_unittest.cc View 11 chunks +111 lines, -36 lines 0 comments Download
M components/prefs/pref_filter.h View 3 chunks +12 lines, -4 lines 0 comments Download
M components/user_prefs/tracked/pref_hash_filter.h View 1 chunk +2 lines, -1 line 0 comments Download
M components/user_prefs/tracked/pref_hash_filter.cc View 2 chunks +4 lines, -1 line 0 comments Download
M components/user_prefs/tracked/tracked_preferences_migration_unittest.cc View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 26 (12 generated)
proberge
PTAL
4 years, 2 months ago (2016-09-26 21:21:25 UTC) #3
gab
lgtm
4 years, 2 months ago (2016-09-27 14:07:25 UTC) #4
dcheng
LGTM
4 years, 2 months ago (2016-09-27 23:29:51 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2372663003/1
4 years, 2 months ago (2016-09-28 14:09:40 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/243059) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 2 months ago (2016-09-28 14:16:35 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2372663003/1
4 years, 2 months ago (2016-09-28 14:24:01 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/276134)
4 years, 2 months ago (2016-09-28 14:25:34 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2372663003/1
4 years, 2 months ago (2016-09-28 15:15:35 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/76792)
4 years, 2 months ago (2016-09-28 15:52:19 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2372663003/20001
4 years, 2 months ago (2016-09-28 18:13:24 UTC) #20
gab
PS2 lgtm as well
4 years, 2 months ago (2016-09-28 18:15:36 UTC) #21
dcheng
still lgtm
4 years, 2 months ago (2016-09-28 18:23:19 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-09-28 19:51:31 UTC) #24
commit-bot: I haz the power
4 years, 2 months ago (2016-09-28 19:55:11 UTC) #26
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c503d69650b9ecb3dbe45c44af03b3af8d347250
Cr-Commit-Position: refs/heads/master@{#421612}

Powered by Google App Engine
This is Rietveld 408576698