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

Issue 2168093002: Reorganizing few DCHECKs for better catching of failure. (Closed)

Created:
4 years, 5 months ago by AKV
Modified:
4 years, 5 months ago
Reviewers:
no sievers
CC:
chromium-reviews, asanka, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reorganizing few DCHECKs for better catching of failrue. In current code, some of the DCHECKs are having multiple conditions. It's difficult to identify the failures if DCHECK fails due to one of those conditions. Now moved the conditions to separate DCHECKs, so that failure can identify at correct point. BUG= Committed: https://crrev.com/67a627d5b5687ac16a66bb92b76cac1bb416124e Cr-Commit-Position: refs/heads/master@{#407201}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fixed review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -18 lines) Patch
M content/browser/browser_thread_impl.cc View 1 9 chunks +21 lines, -16 lines 0 comments Download
M content/browser/download/save_item.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
AKV
PTAL!
4 years, 5 months ago (2016-07-21 13:29:28 UTC) #2
no sievers
https://codereview.chromium.org/2168093002/diff/1/content/browser/browser_thread_impl.cc File content/browser/browser_thread_impl.cc (right): https://codereview.chromium.org/2168093002/diff/1/content/browser/browser_thread_impl.cc#newcode296 content/browser/browser_thread_impl.cc:296: DCHECK(identifier_ >= 0); nit: you can even do DCHECK_GE(identifier, ...
4 years, 5 months ago (2016-07-21 19:08:01 UTC) #3
AKV
PTAL! https://codereview.chromium.org/2168093002/diff/1/content/browser/browser_thread_impl.cc File content/browser/browser_thread_impl.cc (right): https://codereview.chromium.org/2168093002/diff/1/content/browser/browser_thread_impl.cc#newcode296 content/browser/browser_thread_impl.cc:296: DCHECK(identifier_ >= 0); On 2016/07/21 19:08:01, sievers wrote: ...
4 years, 5 months ago (2016-07-22 14:26:13 UTC) #4
no sievers
lgtm
4 years, 5 months ago (2016-07-22 17:11:53 UTC) #6
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/2168093002/20001
4 years, 5 months ago (2016-07-22 17:13:51 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-22 18:05:26 UTC) #10
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 18:07:22 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/67a627d5b5687ac16a66bb92b76cac1bb416124e
Cr-Commit-Position: refs/heads/master@{#407201}

Powered by Google App Engine
This is Rietveld 408576698