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

Issue 2272593002: Safeguard against crash-looping if subresource filter rule indexing fails. (Closed)

Created:
4 years, 4 months ago by engedy
Modified:
4 years, 4 months ago
Reviewers:
rkaplow, pkalinnikov
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Safeguard against crash-looping if subresource filter rule indexing fails. A sentinel file is placed in the ruleset version directory just before indexing commences, and removed afterwards. Therefore, if a sentinel file is found on next start-up, it is an indication that the previous indexing operation may have crashed, and indexing will not be attempted again. This CL also slightly refactors unit tests so that we no longer have specific tests verifying histograms values, but instead we have tests exercising error scenarios, and verifying histogram values is performed as part of that. TBR=rkaplow@chromium.org BUG=609747 Committed: https://crrev.com/6ab601217b9c7ff2123ae262d2eada5e1b1557ec Cr-Commit-Position: refs/heads/master@{#414235}

Patch Set 1 #

Patch Set 2 : Histograms.xml + comments + more tests. #

Patch Set 3 : Pipe temporary directory through env vars. #

Patch Set 4 : Actually expose temp dir. #

Patch Set 5 : Fix iOS and Win builders. #

Total comments: 6

Patch Set 6 : Addressed comments by pkalinnikov@. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+373 lines, -98 lines) Patch
M components/subresource_filter/core/browser/ruleset_service.h View 1 2 3 4 5 5 chunks +18 lines, -3 lines 0 comments Download
M components/subresource_filter/core/browser/ruleset_service.cc View 1 7 chunks +90 lines, -20 lines 0 comments Download
M components/subresource_filter/core/browser/ruleset_service_unittest.cc View 1 2 3 4 5 21 chunks +248 lines, -75 lines 0 comments Download
M components/subresource_filter/core/browser/subresource_filter_constants.h View 1 2 3 4 5 2 chunks +10 lines, -0 lines 0 comments Download
M components/subresource_filter/core/browser/subresource_filter_constants.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (24 generated)
engedy
@Pavel, please review. The fault injection is a bit ugly, simplification ideas are very welcome! ...
4 years, 4 months ago (2016-08-23 10:02:57 UTC) #3
engedy
Test failures are fixed. Pavel, PTAL.
4 years, 4 months ago (2016-08-24 13:05:13 UTC) #18
rkaplow
lgtm
4 years, 4 months ago (2016-08-24 14:25:22 UTC) #19
pkalinnikov
LGTM % couple of nits. https://codereview.chromium.org/2272593002/diff/80001/components/subresource_filter/core/browser/ruleset_service.h File components/subresource_filter/core/browser/ruleset_service.h (right): https://codereview.chromium.org/2272593002/diff/80001/components/subresource_filter/core/browser/ruleset_service.h#newcode201 components/subresource_filter/core/browser/ruleset_service.h:201: private: Is double private ...
4 years, 4 months ago (2016-08-24 15:13:01 UTC) #20
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/2272593002/100001
4 years, 4 months ago (2016-08-24 15:23:25 UTC) #23
engedy
https://codereview.chromium.org/2272593002/diff/80001/components/subresource_filter/core/browser/ruleset_service.h File components/subresource_filter/core/browser/ruleset_service.h (right): https://codereview.chromium.org/2272593002/diff/80001/components/subresource_filter/core/browser/ruleset_service.h#newcode201 components/subresource_filter/core/browser/ruleset_service.h:201: private: On 2016/08/24 15:13:01, pkalinnikov wrote: > Is double ...
4 years, 4 months ago (2016-08-24 15:23:25 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/128900)
4 years, 4 months ago (2016-08-24 16:51:08 UTC) #26
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/2272593002/100001
4 years, 4 months ago (2016-08-24 18:29:15 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/267954)
4 years, 4 months ago (2016-08-24 21:08:45 UTC) #30
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/2272593002/100001
4 years, 4 months ago (2016-08-24 22:25:09 UTC) #32
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 4 months ago (2016-08-25 00:56:59 UTC) #34
commit-bot: I haz the power
4 years, 4 months ago (2016-08-25 00:59:02 UTC) #36
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/6ab601217b9c7ff2123ae262d2eada5e1b1557ec
Cr-Commit-Position: refs/heads/master@{#414235}

Powered by Google App Engine
This is Rietveld 408576698