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

Issue 2879713002: Reland "Refined DCHECK preventing multiple event forwarders in VA tree path" (Closed)

Created:
3 years, 7 months ago by Jinsuk Kim
Modified:
3 years, 7 months ago
Reviewers:
boliu
CC:
chromium-reviews, mthiesse
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland "Refined DCHECK preventing multiple event forwarders in VA tree path" Previous CL: https://crrev.com/2861413002 The new test in the CL depends on the presence of DCHECK macro but some buildbots failed since they don't have DCHECK enabled (Trybot passed because they have deliberately DCHECK on). Added #if DCHECK_IS_ON() to handle that, and also used a simpler macro EXPECT_DCHECK_DEATH over DCHECK_DEATH. > A ViewAndroid tree path from the top to a leaf node can have only > a single EventForwarder instance. Rewrote helper methods used for > DCHECK that enforces the requirement to match the actual job with > the intention. BUG=717271 Review-Url: https://codereview.chromium.org/2861413002 Cr-Commit-Position: refs/heads/master@{#470814} Committed: https://chromium.googlesource.com/chromium/src/+/1a116ecfdf829702b653ded84a0e1cdb8bdfd7d6 patch from issue 2861413002 at patchset 200001 (http://crrev.com/2861413002#ps200001) Review-Url: https://codereview.chromium.org/2879713002 Cr-Commit-Position: refs/heads/master@{#471262} Committed: https://chromium.googlesource.com/chromium/src/+/e982114658f12e1dd021e74580ef7ccd73c44a85

Patch Set 1 : prev patch #

Patch Set 2 : fix test #

Total comments: 2

Patch Set 3 : no if #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -15 lines) Patch
M ui/android/view_android.h View 1 chunk +4 lines, -4 lines 0 comments Download
M ui/android/view_android.cc View 3 chunks +15 lines, -11 lines 0 comments Download
M ui/android/view_android_unittests.cc View 1 2 2 chunks +34 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
Jinsuk Kim
note: view_android.{cc|h} haven't changed. Only the unit test in enclosed in #if .. #endif.
3 years, 7 months ago (2017-05-12 00:13:31 UTC) #2
boliu
https://codereview.chromium.org/2879713002/diff/40001/ui/android/view_android_unittests.cc File ui/android/view_android_unittests.cc (right): https://codereview.chromium.org/2879713002/diff/40001/ui/android/view_android_unittests.cc#newcode176 ui/android/view_android_unittests.cc:176: EXPECT_DCHECK_DEATH(parent.AddChild(&child)); I think using EXPECT_DCHECK_DEATH means you don't need ...
3 years, 7 months ago (2017-05-12 01:23:13 UTC) #4
Jinsuk Kim
https://codereview.chromium.org/2879713002/diff/40001/ui/android/view_android_unittests.cc File ui/android/view_android_unittests.cc (right): https://codereview.chromium.org/2879713002/diff/40001/ui/android/view_android_unittests.cc#newcode176 ui/android/view_android_unittests.cc:176: EXPECT_DCHECK_DEATH(parent.AddChild(&child)); On 2017/05/12 01:23:13, boliu wrote: > I think ...
3 years, 7 months ago (2017-05-12 01:42:57 UTC) #5
boliu
lgtm
3 years, 7 months ago (2017-05-12 01:45:46 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/2879713002/60001
3 years, 7 months ago (2017-05-12 09:26:10 UTC) #8
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 09:57:20 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/e982114658f12e1dd021e74580ef...

Powered by Google App Engine
This is Rietveld 408576698