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

Issue 1512223002: Lazily allocate the holder in mojo::internal::SharedData<>. (Closed)

Created:
5 years ago by Anand Mistry (off Chromium)
Modified:
5 years ago
Reviewers:
yzshen1
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Lazily allocate the holder in mojo::internal::SharedData<>. This makes it possible to create a SharedData on one thread, but initialise it on another. This solves the issue of null mojo::Callbacks being bound to the creation thread, preventing them from being assigned on another (i.e. such as in uses of Binding<>). BUG=569694 Committed: https://crrev.com/b3057bedfb2584157e5e0da9a4936c2c80baf72c Cr-Commit-Position: refs/heads/master@{#365764}

Patch Set 1 #

Patch Set 2 : Add comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -11 lines) Patch
M mojo/public/cpp/bindings/lib/shared_data.h View 1 2 chunks +41 lines, -11 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
Anand Mistry (off Chromium)
The complexity in this change is because of the behaviour of SharedData<>. If you create ...
5 years ago (2015-12-16 01:54:38 UTC) #3
yzshen1
LGTM Eventually I think we will want to replace/reimplement this with some base/ utility class. ...
5 years ago (2015-12-17 01:14:59 UTC) #4
yzshen1
On 2015/12/17 01:14:59, yzshen1 (OOO till new year) wrote: > LGTM > > Eventually I ...
5 years ago (2015-12-17 01:20:23 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1512223002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1512223002/20001
5 years ago (2015-12-17 04:38:04 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-12-17 05:41:16 UTC) #10
commit-bot: I haz the power
5 years ago (2015-12-17 05:42:21 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b3057bedfb2584157e5e0da9a4936c2c80baf72c
Cr-Commit-Position: refs/heads/master@{#365764}

Powered by Google App Engine
This is Rietveld 408576698