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

Issue 2458773003: Clarify that BlockSizeForFileType can't be called with EXTERNAL FileType (Closed)

Created:
4 years, 1 month ago by hans
Modified:
4 years, 1 month ago
Reviewers:
Zhongyi Shi
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clarify that BlockSizeForFileType can't be called with EXTERNAL FileType PVS-Studio analysis pointed out that if it were called with such a file type, that would lead to division by zero in RequiredBlocks. Also, remove the default: case since the enum is now covered. Clang warns if the switch doesn't cover all enum values. BUG=660198 Committed: https://crrev.com/d8c29e03c348bdb7ce8522f22515523de1c20df9 Cr-Commit-Position: refs/heads/master@{#428279}

Patch Set 1 #

Total comments: 5

Patch Set 2 : pacify gcc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M net/disk_cache/blockfile/addr.h View 1 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 22 (8 generated)
hans
Please take a look.
4 years, 1 month ago (2016-10-27 23:09:05 UTC) #2
Zhongyi Shi
Could you update your issue description? It seems inconsistent with the code change to me.
4 years, 1 month ago (2016-10-27 23:13:27 UTC) #3
hans
On 2016/10/27 23:13:27, Zhongyi Shi wrote: > Could you update your issue description? It seems ...
4 years, 1 month ago (2016-10-27 23:18:35 UTC) #4
Zhongyi Shi
On 2016/10/27 23:13:27, Zhongyi Shi wrote: > Could you update your issue description? It seems ...
4 years, 1 month ago (2016-10-27 23:19:00 UTC) #6
Zhongyi Shi
https://codereview.chromium.org/2458773003/diff/1/net/disk_cache/blockfile/addr.h File net/disk_cache/blockfile/addr.h (right): https://codereview.chromium.org/2458773003/diff/1/net/disk_cache/blockfile/addr.h#newcode143 net/disk_cache/blockfile/addr.h:143: NOTREACHED(); nit: I would prefer to have the default ...
4 years, 1 month ago (2016-10-27 23:29:43 UTC) #7
hans
https://codereview.chromium.org/2458773003/diff/1/net/disk_cache/blockfile/addr.h File net/disk_cache/blockfile/addr.h (right): https://codereview.chromium.org/2458773003/diff/1/net/disk_cache/blockfile/addr.h#newcode143 net/disk_cache/blockfile/addr.h:143: NOTREACHED(); On 2016/10/27 23:29:43, Zhongyi Shi wrote: > nit: ...
4 years, 1 month ago (2016-10-27 23:33:35 UTC) #8
Zhongyi Shi
https://codereview.chromium.org/2458773003/diff/1/net/disk_cache/blockfile/addr.h File net/disk_cache/blockfile/addr.h (right): https://codereview.chromium.org/2458773003/diff/1/net/disk_cache/blockfile/addr.h#newcode143 net/disk_cache/blockfile/addr.h:143: NOTREACHED(); On 2016/10/27 23:33:35, hans wrote: > On 2016/10/27 ...
4 years, 1 month ago (2016-10-28 00:01:49 UTC) #9
hans
https://codereview.chromium.org/2458773003/diff/1/net/disk_cache/blockfile/addr.h File net/disk_cache/blockfile/addr.h (right): https://codereview.chromium.org/2458773003/diff/1/net/disk_cache/blockfile/addr.h#newcode143 net/disk_cache/blockfile/addr.h:143: NOTREACHED(); On 2016/10/28 00:01:49, Zhongyi Shi wrote: > On ...
4 years, 1 month ago (2016-10-28 00:57:36 UTC) #10
Zhongyi Shi
lgtm https://codereview.chromium.org/2458773003/diff/1/net/disk_cache/blockfile/addr.h File net/disk_cache/blockfile/addr.h (right): https://codereview.chromium.org/2458773003/diff/1/net/disk_cache/blockfile/addr.h#newcode143 net/disk_cache/blockfile/addr.h:143: NOTREACHED(); On 2016/10/28 00:57:35, hans wrote: > On ...
4 years, 1 month ago (2016-10-28 02:26:49 UTC) #11
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/2458773003/1
4 years, 1 month ago (2016-10-28 02:35:26 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: android_cronet on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_cronet/builds/26199)
4 years, 1 month ago (2016-10-28 02:47:24 UTC) #15
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/2458773003/20001
4 years, 1 month ago (2016-10-28 02:57:46 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-10-28 04:07:52 UTC) #20
commit-bot: I haz the power
4 years, 1 month ago (2016-10-28 04:09:36 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d8c29e03c348bdb7ce8522f22515523de1c20df9
Cr-Commit-Position: refs/heads/master@{#428279}

Powered by Google App Engine
This is Rietveld 408576698