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

Issue 1891473002: WTF: Implement explicit RefPtr::operator bool. (Closed)

Created:
4 years, 8 months ago by jbroman
Modified:
4 years, 8 months ago
Reviewers:
Yuta Kitamura, sof, Nico
CC:
ajuma+watch-canvas_chromium.org, darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-layout_chromium.org, blink-reviews-platform-graphics_chromium.org, blink-reviews-style_chromium.org, blink-reviews-wtf_chromium.org, Rik, caseq+blink_chromium.org, chromium-reviews, danakj+watch_chromium.org, devtools-reviews_chromium.org, dglazkov+blink, dshwang, drott+blinkwatch_chromium.org, krit, eae+blinkwatch, f(malita), gavinp+loader_chromium.org, Nate Chapin, jchaffraix+rendering, Justin Novosad, kinuko+watch, kozyatinskiy+blink_chromium.org, leviw+renderwatch, loading-reviews+fetch_chromium.org, lushnikov+blink_chromium.org, Mikhail, pdr+renderingwatchlist_chromium.org, pdr+graphicswatchlist_chromium.org, pfeldman+blink_chromium.org, rwlbuis, Stephen Chennney, sergeyv+blink_chromium.org, szager+layoutwatch_chromium.org, tyoshino+watch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WTF: Implement explicit RefPtr::operator bool. This is the modern alternative to the "safe bool" idiom. Some changes at call sites are required, primarily because returning a boolean does not cause an explicit conversion. Committed: https://crrev.com/faf124b93463720518cae3ab3eb1388f1e3b418a Cr-Commit-Position: refs/heads/master@{#388297}

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -30 lines) Patch
M third_party/WebKit/Source/core/css/LocalFontFaceSource.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/SubstituteData.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/NetworkResourcesData.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutCounter.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/PODRedBlackTree.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontDataForRangeSet.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/fonts/SimpleFontData.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/fonts/shaping/CachingWordShapeIterator.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/PassRefPtr.h View 1 3 chunks +21 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/wtf/RefPtr.h View 1 3 chunks +21 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferBuilder.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.h View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
jbroman
4 years, 8 months ago (2016-04-18 15:51:08 UTC) #2
Yuta Kitamura
lgtm
4 years, 8 months ago (2016-04-19 07:37:19 UTC) #3
sof
Could you outline the benefits of adding explicit get()s in this context (for one kind ...
4 years, 8 months ago (2016-04-19 07:39:14 UTC) #5
jbroman
On 2016/04/19 at 07:39:14, sigbjornf wrote: > Could you outline the benefits of adding explicit ...
4 years, 8 months ago (2016-04-19 12:25:12 UTC) #6
Nico
lgtm
4 years, 8 months ago (2016-04-19 14:20:54 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1891473002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1891473002/20001
4 years, 8 months ago (2016-04-19 18:44:26 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-19 20:23:40 UTC) #10
jbroman
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1912203002/ by jbroman@chromium.org. ...
4 years, 8 months ago (2016-04-22 17:36:17 UTC) #11
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:15:52 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/faf124b93463720518cae3ab3eb1388f1e3b418a
Cr-Commit-Position: refs/heads/master@{#388297}

Powered by Google App Engine
This is Rietveld 408576698