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

Issue 2154473004: Add a sanity DCHECK when constructing a UIResourceRequest. (Closed)

Created:
4 years, 5 months ago by Donn Denman
Modified:
4 years, 5 months ago
Reviewers:
vmpstr
CC:
chromium-reviews, cc-bugs_chromium.org, mdjones, Theresa
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a sanity DCHECK when constructing a UIResourceRequest. Adds a DCHECK that we're actually deleting a resource when no bitmap is specified in the constructor. BUG=562353 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel Committed: https://crrev.com/8aa5fa8bd2cb17b294ad00bfbe98502b30c4e738 Cr-Commit-Position: refs/heads/master@{#405906}

Patch Set 1 #

Patch Set 2 : Added a check that we're deleting when no bitmap is passed to the constructor. #

Total comments: 6

Patch Set 3 : Removed DCHECKS on references, fixed the resource DCHECK. #

Total comments: 2

Patch Set 4 : Removed qualifier that was not needed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M cc/resources/ui_resource_request.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 17 (8 generated)
Donn Denman
Vlad, PTAL, and let me know if you think those other DCHECKS are not advisable.
4 years, 5 months ago (2016-07-15 21:26:12 UTC) #3
vmpstr
https://chromiumcodereview.appspot.com/2154473004/diff/20001/cc/resources/ui_resource_request.cc File cc/resources/ui_resource_request.cc (right): https://chromiumcodereview.appspot.com/2154473004/diff/20001/cc/resources/ui_resource_request.cc#newcode14 cc/resources/ui_resource_request.cc:14: DCHECK(type == UIResourceRequestType.DELETE); This should be UI_RESOURCE_DELETE, right? from ...
4 years, 5 months ago (2016-07-15 21:29:24 UTC) #5
Donn Denman
Vlad, PTAL. Thanks for your help, and sorry for the sloppy work. https://chromiumcodereview.appspot.com/2154473004/diff/20001/cc/resources/ui_resource_request.cc File cc/resources/ui_resource_request.cc ...
4 years, 5 months ago (2016-07-15 22:05:57 UTC) #7
vmpstr
lgtm thanks! https://chromiumcodereview.appspot.com/2154473004/diff/40001/cc/resources/ui_resource_request.cc File cc/resources/ui_resource_request.cc (right): https://chromiumcodereview.appspot.com/2154473004/diff/40001/cc/resources/ui_resource_request.cc#newcode14 cc/resources/ui_resource_request.cc:14: DCHECK(type == UIResourceRequestType::UI_RESOURCE_DELETE); nit: I don't think ...
4 years, 5 months ago (2016-07-15 22:10:24 UTC) #8
Donn Denman
On 2016/07/15 22:10:24, vmpstr wrote: > lgtm thanks! > > https://chromiumcodereview.appspot.com/2154473004/diff/40001/cc/resources/ui_resource_request.cc > File cc/resources/ui_resource_request.cc (right): ...
4 years, 5 months ago (2016-07-15 22:15:17 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/2154473004/60001
4 years, 5 months ago (2016-07-15 22:15:45 UTC) #12
Donn Denman
https://chromiumcodereview.appspot.com/2154473004/diff/40001/cc/resources/ui_resource_request.cc File cc/resources/ui_resource_request.cc (right): https://chromiumcodereview.appspot.com/2154473004/diff/40001/cc/resources/ui_resource_request.cc#newcode14 cc/resources/ui_resource_request.cc:14: DCHECK(type == UIResourceRequestType::UI_RESOURCE_DELETE); On 2016/07/15 22:10:24, vmpstr wrote: > ...
4 years, 5 months ago (2016-07-15 22:15:46 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-07-16 00:07:17 UTC) #15
commit-bot: I haz the power
4 years, 5 months ago (2016-07-16 00:09:08 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8aa5fa8bd2cb17b294ad00bfbe98502b30c4e738
Cr-Commit-Position: refs/heads/master@{#405906}

Powered by Google App Engine
This is Rietveld 408576698