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

Issue 2000043002: Make base::Optional trivially destructible when possible. (Closed)

Created:
4 years, 7 months ago by alshabalin
Modified:
4 years, 6 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make base::Optional trivially destructible when possible. * Implement base::is_trivially_destructible. * Add value_type to Optional. * Make Optional<T> trivially destructible when T is trivially destructible. * Add some more tests on Optional. BUG=521269, 554293 Committed: https://crrev.com/f06b07dffd6ac5ee2f4e8bd2e1385c04a34f3da4 Cr-Commit-Position: refs/heads/master@{#396423}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Remove forward declarations in std. Comments on OptionalStorage. #

Patch Set 3 : Fix build on Windows. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+193 lines, -56 lines) Patch
M base/optional.h View 1 11 chunks +76 lines, -46 lines 0 comments Download
M base/optional_unittest.cc View 1 2 10 chunks +79 lines, -2 lines 0 comments Download
M base/template_util.h View 1 3 chunks +24 lines, -8 lines 0 comments Download
M base/template_util_unittest.cc View 1 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (12 generated)
alshabalin
4 years, 7 months ago (2016-05-22 08:08:55 UTC) #3
alshabalin
PTAL
4 years, 7 months ago (2016-05-24 10:46:33 UTC) #4
alshabalin
Dana, Nico PTAL.
4 years, 7 months ago (2016-05-25 10:28:34 UTC) #6
alshabalin
+ Lei, Mark.
4 years, 7 months ago (2016-05-25 10:37:37 UTC) #8
Nico
one base reviewer is enough. removing everyone but danakj, adding mlamouri, author of this file ...
4 years, 7 months ago (2016-05-25 13:56:59 UTC) #10
danakj
https://codereview.chromium.org/2000043002/diff/1/base/optional.h File base/optional.h (right): https://codereview.chromium.org/2000043002/diff/1/base/optional.h#newcode49 base/optional.h:49: ~OptionalStorage() = default; Can you leave a comment here ...
4 years, 7 months ago (2016-05-25 20:02:09 UTC) #11
alshabalin
https://codereview.chromium.org/2000043002/diff/1/base/optional.h File base/optional.h (right): https://codereview.chromium.org/2000043002/diff/1/base/optional.h#newcode49 base/optional.h:49: ~OptionalStorage() = default; On 2016/05/25 20:02:08, danakj wrote: > ...
4 years, 7 months ago (2016-05-26 09:18:46 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2000043002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2000043002/20001
4 years, 7 months ago (2016-05-26 22:57:59 UTC) #15
danakj
LGTM thanks! https://codereview.chromium.org/2000043002/diff/1/base/optional_unittest.cc File base/optional_unittest.cc (right): https://codereview.chromium.org/2000043002/diff/1/base/optional_unittest.cc#newcode372 base/optional_unittest.cc:372: EXPECT_EQ(TestObject::State::MOVE_CONSTRUCTED, a->state()); On 2016/05/26 09:18:45, alshabalin wrote: ...
4 years, 7 months ago (2016-05-26 22:59:27 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/229164)
4 years, 7 months ago (2016-05-27 00:41:05 UTC) #18
danakj
Needs some changes to build on windows though.
4 years, 7 months ago (2016-05-27 01:19:21 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2000043002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2000043002/40001
4 years, 6 months ago (2016-05-27 06:14:35 UTC) #22
alshabalin
On 2016/05/27 01:19:21, danakj_OOO_back_5.31 wrote: > Needs some changes to build on windows though. Yeah, ...
4 years, 6 months ago (2016-05-27 06:16:45 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-05-27 08:01:45 UTC) #25
commit-bot: I haz the power
4 years, 6 months ago (2016-05-27 08:03:17 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f06b07dffd6ac5ee2f4e8bd2e1385c04a34f3da4
Cr-Commit-Position: refs/heads/master@{#396423}

Powered by Google App Engine
This is Rietveld 408576698