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

Issue 2904123003: [DMC #21] Add check to make TextMatchMarker cast safer (Closed)

Created:
3 years, 7 months ago by rlanday
Modified:
3 years, 6 months ago
Reviewers:
yosin_UTC9, Xiaocheng
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add check to make TextMatchMarker cast safer Currently, ToTextMatchMarker() is an unchecked cast. This CL adds a condition for describing when this cast is safe so this cast can be DCHECKed in debug mode. BUG=707867 Review-Url: https://codereview.chromium.org/2904123003 Cr-Commit-Position: refs/heads/master@{#475112} Committed: https://chromium.googlesource.com/chromium/src/+/4c1c503b1d3d6a8f4f7fcfce84796a0877255d1d

Patch Set 1 #

Patch Set 2 : Remove dep #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M third_party/WebKit/Source/core/editing/markers/TextMatchMarker.h View 1 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 10 (5 generated)
rlanday
3 years, 7 months ago (2017-05-25 22:46:19 UTC) #2
yosin_UTC9
lgtm Please commit this patch before the patch using ToTextMatchMarker().
3 years, 7 months ago (2017-05-26 04:46:59 UTC) #3
rlanday
Note: until https://codereview.chromium.org/2905753002, this check can pass and the cast still might not be safe ...
3 years, 6 months ago (2017-05-26 18:49:50 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/2904123003/20001
3 years, 6 months ago (2017-05-26 18:50:35 UTC) #7
commit-bot: I haz the power
3 years, 6 months ago (2017-05-26 20:37:18 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/4c1c503b1d3d6a8f4f7fcfce8479...

Powered by Google App Engine
This is Rietveld 408576698