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

Issue 1897863006: Replace WTF::Optional the base::Optional implementation. (Closed)

Created:
4 years, 8 months ago by danakj
Modified:
4 years, 7 months ago
Reviewers:
esprehn, Nico, jbroman
CC:
blink-reviews, blink-reviews-wtf_chromium.org, chromium-reviews, Mikhail, mlamouri (slow - plz ping), piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace WTF::Optional the base::Optional implementation. R=jbroman, thakis@chromium.org BUG=604860 Committed: https://crrev.com/0a079b3fb27d30609aed6eaaaf2b72423741b5e5 Cr-Commit-Position: refs/heads/master@{#388624} Committed: https://crrev.com/f337675ea340b9d2070e773ec4c14a8e179c78ab Cr-Commit-Position: refs/heads/master@{#390594}

Patch Set 1 #

Total comments: 2

Patch Set 2 : wtfoptional: . #

Patch Set 3 : wtfoptional: movable #

Patch Set 4 : wtfoptional: try-with-no-default #

Patch Set 5 : wtfoptional: fixwindebug-generating-unused-constructors #

Patch Set 6 : wtfoptional: assert #

Patch Set 7 : wtfoptional: withtext #

Total comments: 4

Patch Set 8 : wtfoptional: enableif #

Patch Set 9 : wtfoptional: nicer #

Patch Set 10 : wtfoptional: Wno-maybe-uninitialized #

Patch Set 11 : wtfoptional: notonclang #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -56 lines) Patch
M build/common.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
M build/config/compiler/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/Optional.h View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -56 lines 0 comments Download

Messages

Total messages: 68 (20 generated)
danakj
While blink-dev figures out using DEPS in more places, we can make this a type ...
4 years, 8 months ago (2016-04-19 20:15:09 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1897863006/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1897863006/1
4 years, 8 months ago (2016-04-19 20:15:54 UTC) #3
jbroman
I have no objection here (other than I'm not sure aliases like this add long-term ...
4 years, 8 months ago (2016-04-19 20:19:17 UTC) #4
danakj
> I have no objection here (other than I'm not sure aliases like this add ...
4 years, 8 months ago (2016-04-19 20:28:49 UTC) #6
danakj
(it's also possible this should move to platform, though that's somewhat orthogonal)
4 years, 8 months ago (2016-04-19 20:29:15 UTC) #7
esprehn
I actually don't think we want to do this, the WTF one can be a ...
4 years, 8 months ago (2016-04-19 21:10:38 UTC) #8
danakj
On Tue, Apr 19, 2016 at 2:10 PM, <esprehn@chromium.org> wrote: > I actually don't think ...
4 years, 8 months ago (2016-04-19 21:20:25 UTC) #9
danakj
On Tue, Apr 19, 2016 at 2:10 PM, <esprehn@chromium.org> wrote: > I actually don't think ...
4 years, 8 months ago (2016-04-19 21:20:26 UTC) #10
esprehn
I'm suggesting this: template<T> class Optional : public base::Optional<T> { static_assert(!IsGarbageCollectedType<T>::value); static_assert(!IsRefCountedType<T>::value); } That's actually ...
4 years, 8 months ago (2016-04-19 22:26:53 UTC) #11
danakj
On Tue, Apr 19, 2016 at 3:26 PM, <esprehn@chromium.org> wrote: > I'm suggesting this: > ...
4 years, 8 months ago (2016-04-19 23:04:51 UTC) #12
danakj
On Tue, Apr 19, 2016 at 3:26 PM, <esprehn@chromium.org> wrote: > I'm suggesting this: > ...
4 years, 8 months ago (2016-04-19 23:04:52 UTC) #13
danakj
On 2016/04/19 23:04:52, danakj wrote: > On Tue, Apr 19, 2016 at 3:26 PM, <mailto:esprehn@chromium.org> ...
4 years, 8 months ago (2016-04-19 23:25:33 UTC) #14
jbroman
On 2016/04/19 at 23:25:33, danakj wrote: > On 2016/04/19 23:04:52, danakj wrote: > > On ...
4 years, 8 months ago (2016-04-19 23:28:37 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1897863006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1897863006/80001
4 years, 8 months ago (2016-04-19 23:36:48 UTC) #17
esprehn
The clang plugin enforces you can't allocate it on the stack, it doesn't understand every ...
4 years, 8 months ago (2016-04-19 23:45:43 UTC) #18
danakj
On 2016/04/19 22:26:53, esprehn wrote: > I'm suggesting this: > > > template<T> > class ...
4 years, 8 months ago (2016-04-20 00:05:08 UTC) #19
danakj
On 2016/04/20 00:05:08, danakj wrote: > On 2016/04/19 22:26:53, esprehn wrote: > > I'm suggesting ...
4 years, 8 months ago (2016-04-20 00:05:33 UTC) #20
danakj
PTAL to match clang-plugin behaviours. We should probably just enforce that constructors are not public, ...
4 years, 8 months ago (2016-04-20 00:12:06 UTC) #21
esprehn
https://codereview.chromium.org/1897863006/diff/120001/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h File third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h (right): https://codereview.chromium.org/1897863006/diff/120001/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h#newcode131 third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h:131: WTF_MAKE_NONCOPYABLE(ImageExtractor); why this patch?
4 years, 8 months ago (2016-04-20 00:28:03 UTC) #23
danakj
https://codereview.chromium.org/1897863006/diff/120001/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h File third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h (right): https://codereview.chromium.org/1897863006/diff/120001/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h#newcode131 third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h:131: WTF_MAKE_NONCOPYABLE(ImageExtractor); On 2016/04/20 00:28:03, esprehn wrote: > why this ...
4 years, 8 months ago (2016-04-20 00:37:21 UTC) #24
danakj
ping
4 years, 8 months ago (2016-04-20 20:34:50 UTC) #25
jbroman
https://codereview.chromium.org/1897863006/diff/120001/third_party/WebKit/Source/wtf/Optional.h File third_party/WebKit/Source/wtf/Optional.h (right): https://codereview.chromium.org/1897863006/diff/120001/third_party/WebKit/Source/wtf/Optional.h#newcode16 third_party/WebKit/Source/wtf/Optional.h:16: static_assert(!IsGarbageCollectedType<T>::value, "Garbage collected types should not be stack-allocated."); FYI, ...
4 years, 8 months ago (2016-04-20 21:13:24 UTC) #26
danakj
PTAL https://codereview.chromium.org/1897863006/diff/120001/third_party/WebKit/Source/wtf/Optional.h File third_party/WebKit/Source/wtf/Optional.h (right): https://codereview.chromium.org/1897863006/diff/120001/third_party/WebKit/Source/wtf/Optional.h#newcode16 third_party/WebKit/Source/wtf/Optional.h:16: static_assert(!IsGarbageCollectedType<T>::value, "Garbage collected types should not be stack-allocated."); ...
4 years, 8 months ago (2016-04-20 21:33:22 UTC) #27
esprehn
lgtm if it works.
4 years, 8 months ago (2016-04-20 22:04:37 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1897863006/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1897863006/160001
4 years, 8 months ago (2016-04-20 22:06:31 UTC) #30
jbroman
lgtm as well
4 years, 8 months ago (2016-04-20 22:17:51 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/98775)
4 years, 8 months ago (2016-04-20 22:43:42 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1897863006/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1897863006/160001
4 years, 8 months ago (2016-04-20 22:44:53 UTC) #35
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 8 months ago (2016-04-21 00:20:18 UTC) #37
jbudorick
On 2016/04/21 00:20:18, commit-bot: I haz the power wrote: > Committed patchset #9 (id:160001) This ...
4 years, 8 months ago (2016-04-21 01:41:40 UTC) #38
jbudorick
On 2016/04/21 01:41:40, jbudorick wrote: > On 2016/04/21 00:20:18, commit-bot: I haz the power wrote: ...
4 years, 8 months ago (2016-04-21 01:42:40 UTC) #39
jbroman
On 2016/04/21 at 01:42:40, jbudorick wrote: > On 2016/04/21 01:41:40, jbudorick wrote: > > On ...
4 years, 8 months ago (2016-04-21 02:17:22 UTC) #40
jbroman
On 2016/04/21 at 02:17:22, jbroman wrote: > On 2016/04/21 at 01:42:40, jbudorick wrote: > > ...
4 years, 8 months ago (2016-04-21 02:37:15 UTC) #41
petrcermak
A revert of this CL (patchset #9 id:160001) has been created in https://codereview.chromium.org/1908903002/ by petrcermak@chromium.org. ...
4 years, 8 months ago (2016-04-21 09:58:08 UTC) #42
danakj
I can't reproduce the warning building blink with gcc locally D:
4 years, 8 months ago (2016-04-22 00:14:20 UTC) #44
danakj
I've updated this CL to disable maybe-initialized warning for GCC, which would match our clang ...
4 years, 8 months ago (2016-04-22 00:22:54 UTC) #45
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1897863006/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1897863006/180001
4 years, 8 months ago (2016-04-22 00:30:40 UTC) #47
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1897863006/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1897863006/200001
4 years, 8 months ago (2016-04-22 01:05:08 UTC) #50
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_clang on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/10519)
4 years, 8 months ago (2016-04-22 02:54:28 UTC) #52
Nico
build change lgtm, that makes a lot of sense to me.
4 years, 8 months ago (2016-04-22 18:41:18 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1897863006/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1897863006/200001
4 years, 8 months ago (2016-04-22 18:42:33 UTC) #56
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/0a079b3fb27d30609aed6eaaaf2b72423741b5e5 Cr-Commit-Position: refs/heads/master@{#388624}
4 years, 8 months ago (2016-04-22 19:28:31 UTC) #58
danakj
On 2016/04/22 19:28:31, commit-bot: I haz the power wrote: > Patchset 11 (id:??) landed as ...
4 years, 8 months ago (2016-04-22 19:56:32 UTC) #59
danakj
On 2016/04/22 19:28:31, commit-bot: I haz the power wrote: > Patchset 11 (id:??) landed as ...
4 years, 7 months ago (2016-04-29 02:26:02 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1897863006/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1897863006/200001
4 years, 7 months ago (2016-04-29 02:26:29 UTC) #63
danakj
Filed https://bugs.chromium.org/p/chromium/issues/detail?id=607783 about the CQ.
4 years, 7 months ago (2016-04-29 02:27:49 UTC) #64
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 7 months ago (2016-04-29 05:34:57 UTC) #66
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:24:24 UTC) #67
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/f337675ea340b9d2070e773ec4c14a8e179c78ab
Cr-Commit-Position: refs/heads/master@{#390594}

Powered by Google App Engine
This is Rietveld 408576698