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

Issue 1860143002: Allow Vector<Optional> and Optional::get() (Closed)

Created:
4 years, 8 months ago by Xianzhu
Modified:
4 years, 8 months ago
CC:
chromium-reviews, blink-reviews, blink-reviews-wtf_chromium.org, Mikhail
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow Vector<Optional> and Optional::get() Vector<Optional> is useful to manage variable number of optional objects. This CL allows Optional class to use placement 'new' so that we can use Vector<Optional>. Optional::get() is useful to get the pointer (nullptr if the object is not emplaced) to the optional object. It's a short form of equivalent but more verbose form "optionalObject ? &*optionalObject : nullptr". Committed: https://crrev.com/684b685bf914256f43065bebee80038e53ac5c52 Cr-Commit-Position: refs/heads/master@{#385397}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M third_party/WebKit/Source/wtf/Optional.h View 2 chunks +5 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (7 generated)
Xianzhu
I need Vector<Optional<PaintInvalidationState>> in a unit test. Optional::get() is needed by my another CL. It's ...
4 years, 8 months ago (2016-04-05 18:28:38 UTC) #2
Xianzhu
4 years, 8 months ago (2016-04-06 00:19:43 UTC) #4
haraken
Would you give me a link to your CL? Also add more rationale to the ...
4 years, 8 months ago (2016-04-06 00:24:00 UTC) #5
Xianzhu
On 2016/04/06 00:24:00, haraken wrote: > Would you give me a link to your CL? ...
4 years, 8 months ago (2016-04-06 00:31:04 UTC) #6
haraken
LGTM % more CL description.
4 years, 8 months ago (2016-04-06 00:35:37 UTC) #7
Xianzhu
On 2016/04/06 00:35:37, haraken wrote: > LGTM % more CL description. Updated CL description.
4 years, 8 months ago (2016-04-06 06:20:32 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1860143002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1860143002/1
4 years, 8 months ago (2016-04-06 06:22:16 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-04-06 07:32:31 UTC) #14
commit-bot: I haz the power
4 years, 8 months ago (2016-04-06 07:34:47 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/684b685bf914256f43065bebee80038e53ac5c52
Cr-Commit-Position: refs/heads/master@{#385397}

Powered by Google App Engine
This is Rietveld 408576698