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

Issue 2919653004: Use LOG() or LOG_IF() instead of IMMEDIATE_CRASH (Closed)

Created:
3 years, 6 months ago by gyuyoung
Modified:
3 years, 6 months ago
Reviewers:
tkent, haraken
CC:
blink-layers+watch_chromium.org, blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, blink-reviews-layout_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, dglazkov+blink, dominicc+watchlist_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, eae+blinkwatch, fmalita+watch_chromium.org, jchaffraix+rendering, Justin Novosad, kinuko+watch, leviw+renderwatch, mac-reviews_chromium.org, pdr+graphicswatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, platform-architecture-syd+reviews-web_chromium.org, rwlbuis, Stephen Chennney, sof, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use LOG(FATAL) or CHECK*() instead of IMMEDIATE_CRASH Apply review comments in issue 2919443002. Use LOG() and CHECK*() to simplify the code. BUG=596760 Review-Url: https://codereview.chromium.org/2919653004 Cr-Commit-Position: refs/heads/master@{#476946} Committed: https://chromium.googlesource.com/chromium/src/+/46740f4e99de22f90302e72ca3a91730521b5827

Patch Set 1 #

Patch Set 2 : Use LOG() or LOG_IF() instead of IMMEDIATE_CRASH #

Total comments: 2

Patch Set 3 : Use LOG() or CHECKi()|CHECK_FOO() instead of IMMEDIATE_CRASH #

Total comments: 6

Patch Set 4 : Use LOG() or CHECKi()|CHECK_FOO() instead of IMMEDIATE_CRASH #

Patch Set 5 : Use LOG() or CHECK()|CHECK_FOO() instead of IMMEDIATE_CRASH #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -54 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Text.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableCell.h View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableRow.h View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutText.cpp View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/xml/XSLTProcessorLibxslt.cpp View 1 2 1 chunk +8 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp View 1 2 2 chunks +3 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/mac/BlockExceptions.mm View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/wtf/AssertionsTest.cpp View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/wtf/ThreadSpecific.h View 1 2 3 chunks +5 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/platform/wtf/ThreadSpecificWin.cpp View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/wtf/text/StringImpl.cpp View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/wtf/text/TextCodecUTF8.cpp View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebPagePopupImpl.cpp View 1 2 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
gyuyoung
Hi tkent, this CL is to fix it you pointed out in issue 2919443002.
3 years, 6 months ago (2017-06-01 04:24:00 UTC) #2
tkent
I changed my mind. Maybe CHECK() is simpler than LOG_IF(FATAL). I'm sorry for the extra ...
3 years, 6 months ago (2017-06-02 00:26:49 UTC) #3
gyuyoung
https://codereview.chromium.org/2919653004/diff/20001/third_party/WebKit/Source/platform/wtf/AssertionsTest.cpp File third_party/WebKit/Source/platform/wtf/AssertionsTest.cpp (right): https://codereview.chromium.org/2919653004/diff/20001/third_party/WebKit/Source/platform/wtf/AssertionsTest.cpp#newcode31 third_party/WebKit/Source/platform/wtf/AssertionsTest.cpp:31: EXPECT_DEATH_IF_SUPPORTED(LOG(FATAL), ""); On 2017/06/02 00:26:49, tkent wrote: > LOG() ...
3 years, 6 months ago (2017-06-02 14:45:46 UTC) #6
gyuyoung
On 2017/06/02 00:26:49, tkent wrote: > I changed my mind. Maybe CHECK() is simpler than ...
3 years, 6 months ago (2017-06-02 14:46:44 UTC) #7
tkent
https://codereview.chromium.org/2919653004/diff/80001/third_party/WebKit/Source/core/layout/LayoutTableCell.h File third_party/WebKit/Source/core/layout/LayoutTableCell.h (right): https://codereview.chromium.org/2919653004/diff/80001/third_party/WebKit/Source/core/layout/LayoutTableCell.h#newcode106 third_party/WebKit/Source/core/layout/LayoutTableCell.h:106: CHECK(!UNLIKELY(column > kMaxColumnIndex)); UNLIKELY isn't necessary. CHECK() contains it ...
3 years, 6 months ago (2017-06-05 01:58:51 UTC) #8
gyuyoung
https://codereview.chromium.org/2919653004/diff/80001/third_party/WebKit/Source/platform/wtf/Assertions.h File third_party/WebKit/Source/platform/wtf/Assertions.h (right): https://codereview.chromium.org/2919653004/diff/80001/third_party/WebKit/Source/platform/wtf/Assertions.h#newcode132 third_party/WebKit/Source/platform/wtf/Assertions.h:132: CHECK(condition) << "Security DCHECK failed: " #condition ". " ...
3 years, 6 months ago (2017-06-05 02:32:30 UTC) #9
tkent
https://codereview.chromium.org/2919653004/diff/80001/third_party/WebKit/Source/platform/wtf/Assertions.h File third_party/WebKit/Source/platform/wtf/Assertions.h (right): https://codereview.chromium.org/2919653004/diff/80001/third_party/WebKit/Source/platform/wtf/Assertions.h#newcode132 third_party/WebKit/Source/platform/wtf/Assertions.h:132: CHECK(condition) << "Security DCHECK failed: " #condition ". " ...
3 years, 6 months ago (2017-06-05 02:34:56 UTC) #10
gyuyoung
On 2017/06/05 02:34:56, tkent wrote: > https://codereview.chromium.org/2919653004/diff/80001/third_party/WebKit/Source/platform/wtf/Assertions.h > File third_party/WebKit/Source/platform/wtf/Assertions.h (right): > > https://codereview.chromium.org/2919653004/diff/80001/third_party/WebKit/Source/platform/wtf/Assertions.h#newcode132 > ...
3 years, 6 months ago (2017-06-05 03:34:24 UTC) #11
tkent
lgtm
3 years, 6 months ago (2017-06-05 03:42:49 UTC) #13
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/2919653004/120001
3 years, 6 months ago (2017-06-05 03:44:06 UTC) #15
commit-bot: I haz the power
3 years, 6 months ago (2017-06-05 05:30:12 UTC) #18
Message was sent while issue was closed.
Committed patchset #5 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/46740f4e99de22f90302e72ca3a9...

Powered by Google App Engine
This is Rietveld 408576698