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

Issue 2570463003: DCHECK in BudgetService getCost and reserve if an invalid type is supplied. (Closed)

Created:
4 years ago by harkness
Modified:
4 years ago
Reviewers:
Peter Beverloo
CC:
chromium-reviews, blink-reviews, haraken
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DCHECK in BudgetService getCost and reserve if an invalid type is supplied. If an incorrect type is provided to the call, the generated IDL code will reject with a TypeError. This patch removes code in the service implementation which was checking whether the type was invalid and returning a NotSupportedError. The only way this code could be hit would be if there was a programming error, so it should be a DCHECK. BUG=672113 Committed: https://crrev.com/c774d5e31f3d0333dfdf921c0befcc89d1bd1259 Cr-Commit-Position: refs/heads/master@{#437897}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Change != to DCHECK_NE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -8 lines) Patch
M third_party/WebKit/Source/modules/budget/BudgetService.cpp View 1 2 chunks +2 lines, -8 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
harkness
4 years ago (2016-12-12 14:01:27 UTC) #2
Peter Beverloo
lgtm This is already covered by two layout tests :) https://codereview.chromium.org/2570463003/diff/1/third_party/WebKit/Source/modules/budget/BudgetService.cpp File third_party/WebKit/Source/modules/budget/BudgetService.cpp (right): https://codereview.chromium.org/2570463003/diff/1/third_party/WebKit/Source/modules/budget/BudgetService.cpp#newcode68 ...
4 years ago (2016-12-12 14:22:00 UTC) #3
harkness
https://codereview.chromium.org/2570463003/diff/1/third_party/WebKit/Source/modules/budget/BudgetService.cpp File third_party/WebKit/Source/modules/budget/BudgetService.cpp (right): https://codereview.chromium.org/2570463003/diff/1/third_party/WebKit/Source/modules/budget/BudgetService.cpp#newcode68 third_party/WebKit/Source/modules/budget/BudgetService.cpp:68: DCHECK(type != mojom::blink::BudgetOperationType::INVALID_OPERATION); On 2016/12/12 14:22:00, Peter Beverloo wrote: ...
4 years ago (2016-12-12 15:00:43 UTC) #4
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/2570463003/20001
4 years ago (2016-12-12 15:01:12 UTC) #7
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/197138)
4 years ago (2016-12-12 16:17:56 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/2570463003/20001
4 years ago (2016-12-12 16:54:07 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-12 17:51:30 UTC) #14
commit-bot: I haz the power
4 years ago (2016-12-12 18:21:31 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c774d5e31f3d0333dfdf921c0befcc89d1bd1259
Cr-Commit-Position: refs/heads/master@{#437897}

Powered by Google App Engine
This is Rietveld 408576698