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

Issue 1866063002: headless: Add a Maybe-type (Closed)

Created:
4 years, 8 months ago by Sami
Modified:
4 years, 8 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

headless: Add a Maybe-type Add a Maybe-type which will be used by the C++ DevTools client API for representing optional values. BUG=595353 Committed: https://crrev.com/d79e1515bc06265a1216c6910feb7a21232131e2 Cr-Commit-Position: refs/heads/master@{#385797}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Review comments. #

Patch Set 3 : One more test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -0 lines) Patch
M headless/BUILD.gn View 2 chunks +14 lines, -0 lines 0 comments Download
A headless/public/util/maybe.h View 1 1 chunk +92 lines, -0 lines 0 comments Download
A headless/public/util/maybe_unittest.cc View 1 2 1 chunk +83 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
Sami
4 years, 8 months ago (2016-04-06 18:12:15 UTC) #3
alex clarke (OOO till 29th)
https://codereview.chromium.org/1866063002/diff/1/headless/public/util/maybe.h File headless/public/util/maybe.h (right): https://codereview.chromium.org/1866063002/diff/1/headless/public/util/maybe.h#newcode47 headless/public/util/maybe.h:47: std::swap(value_, other.value_); shouldn't this be value_ = std::move(other.value_); https://codereview.chromium.org/1866063002/diff/1/headless/public/util/maybe.h#newcode57 ...
4 years, 8 months ago (2016-04-07 11:45:32 UTC) #4
alex clarke (OOO till 29th)
https://codereview.chromium.org/1866063002/diff/1/headless/public/util/maybe_unittest.cc File headless/public/util/maybe_unittest.cc (right): https://codereview.chromium.org/1866063002/diff/1/headless/public/util/maybe_unittest.cc#newcode73 headless/public/util/maybe_unittest.cc:73: Maybe<MoveOnlyType> b = Just(MoveOnlyType()); Can you do this: MoveOnlyType ...
4 years, 8 months ago (2016-04-07 12:00:05 UTC) #5
Sami
https://codereview.chromium.org/1866063002/diff/1/headless/public/util/maybe.h File headless/public/util/maybe.h (right): https://codereview.chromium.org/1866063002/diff/1/headless/public/util/maybe.h#newcode47 headless/public/util/maybe.h:47: std::swap(value_, other.value_); On 2016/04/07 11:45:32, alexclarke1 wrote: > shouldn't ...
4 years, 8 months ago (2016-04-07 12:00:44 UTC) #6
Sami
https://codereview.chromium.org/1866063002/diff/1/headless/public/util/maybe_unittest.cc File headless/public/util/maybe_unittest.cc (right): https://codereview.chromium.org/1866063002/diff/1/headless/public/util/maybe_unittest.cc#newcode73 headless/public/util/maybe_unittest.cc:73: Maybe<MoveOnlyType> b = Just(MoveOnlyType()); On 2016/04/07 12:00:05, alexclarke1 wrote: ...
4 years, 8 months ago (2016-04-07 12:08:52 UTC) #7
alex clarke (OOO till 29th)
lgtm
4 years, 8 months ago (2016-04-07 15:31:11 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1866063002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1866063002/40001
4 years, 8 months ago (2016-04-07 16:52:22 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-07 17:51:18 UTC) #12
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/d79e1515bc06265a1216c6910feb7a21232131e2 Cr-Commit-Position: refs/heads/master@{#385797}
4 years, 8 months ago (2016-04-07 17:52:38 UTC) #14
danakj
https://codereview.chromium.org/1245163002/
4 years, 8 months ago (2016-04-08 00:32:33 UTC) #16
Sami
On 2016/04/08 00:32:33, danakj wrote: > https://codereview.chromium.org/1245163002/ Heh, great minds think alike :D I had ...
4 years, 8 months ago (2016-04-08 10:06:01 UTC) #17
danakj
4 years, 8 months ago (2016-04-08 18:08:34 UTC) #18
Message was sent while issue was closed.
On Fri, Apr 8, 2016 at 3:06 AM, skyostil@chromium.org via
codereview.chromium.org <reply@chromiumcodereview-hr.appspotmail.com> wrote:

> On 2016/04/08 00:32:33, danakj wrote:
> > https://codereview.chromium.org/1245163002/
>
> Heh, great minds think alike :D I had a chat with Mounir and I think we can
> easily migrate to base::Optional<> once it lands because the code that
> uses it
> in headless is autogenerated. I'll keep an eye on that patch.
>

Great :)

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698