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

Issue 1456663003: Make dispatcher a member of PolicyBase. (Closed)

Created:
5 years, 1 month ago by rickyz (no longer on Chrome)
Modified:
5 years ago
CC:
chromium-reviews, rickyz+watch_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make dispatcher a member of PolicyBase. This is the first step of unifying PolicyBase and TargetPolicy, which should let us get rid of the casting we do between these two. BUG=549319 Committed: https://crrev.com/60f931dc587fee8afbc933ec2d2fac8b24506eed Cr-Commit-Position: refs/heads/master@{#364904}

Patch Set 1 #

Patch Set 2 : Rebase. #

Total comments: 4

Patch Set 3 : Add missing scoped_ptr include. #

Patch Set 4 : Split out TopLevelDispatcher into its own cc/h #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -143 lines) Patch
M sandbox/win/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M sandbox/win/sandbox_win.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M sandbox/win/src/sandbox_policy_base.h View 1 2 3 4 6 chunks +4 lines, -19 lines 0 comments Download
M sandbox/win/src/sandbox_policy_base.cc View 1 2 3 4 7 chunks +10 lines, -124 lines 0 comments Download
A sandbox/win/src/top_level_dispatcher.h View 1 2 3 1 chunk +51 lines, -0 lines 0 comments Download
A sandbox/win/src/top_level_dispatcher.cc View 1 2 3 1 chunk +146 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (11 generated)
rickyz (no longer on Chrome)
Hey cpu@, jschuh@ and wfh@ mentioned that you were familiar with the history behind the ...
5 years, 1 month ago (2015-11-18 01:20:56 UTC) #2
cpu_(ooo_6.6-7.5)
Let's start the other way, can you expand on the reasons for changing it? What ...
5 years, 1 month ago (2015-11-18 23:49:34 UTC) #3
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/1456663003/diff/20001/sandbox/win/src/sandbox_policy_base.cc File sandbox/win/src/sandbox_policy_base.cc (right): https://codereview.chromium.org/1456663003/diff/20001/sandbox/win/src/sandbox_policy_base.cc#newcode43 sandbox/win/src/sandbox_policy_base.cc:43: I don't think we use that nested style here, ...
5 years, 1 month ago (2015-11-18 23:57:10 UTC) #4
rickyz (no longer on Chrome)
On 2015/11/18 at 23:49:34, cpu wrote: > Let's start the other way, can you expand ...
5 years, 1 month ago (2015-11-18 23:59:48 UTC) #5
cpu_(ooo_6.6-7.5)
So we are mixing a few things 1- the cleanup as is going from multiple ...
5 years, 1 month ago (2015-11-19 00:18:04 UTC) #6
cpu_(ooo_6.6-7.5)
also what weird cast are you talking about?
5 years, 1 month ago (2015-11-19 00:18:26 UTC) #7
rickyz (no longer on Chrome)
On 2015/11/19 at 00:18:04, cpu wrote: > 2- chrome's base ref-counting class is fucked up. ...
5 years, 1 month ago (2015-11-19 00:36:06 UTC) #8
rickyz (no longer on Chrome)
https://codereview.chromium.org/1456663003/diff/20001/sandbox/win/src/sandbox_policy_base.cc File sandbox/win/src/sandbox_policy_base.cc (right): https://codereview.chromium.org/1456663003/diff/20001/sandbox/win/src/sandbox_policy_base.cc#newcode43 sandbox/win/src/sandbox_policy_base.cc:43: On 2015/11/18 at 23:57:10, cpu wrote: > I don't ...
5 years, 1 month ago (2015-11-19 00:38:20 UTC) #9
cpu_(ooo_6.6-7.5)
namespace => yeah consistency. Another cc file is fine.
5 years, 1 month ago (2015-11-20 22:28:51 UTC) #10
cpu_(ooo_6.6-7.5)
And so the refcount starts at 1 so no, we can't use base's code. The ...
5 years, 1 month ago (2015-11-20 22:36:31 UTC) #11
rickyz (no longer on Chrome)
On 2015/11/20 at 22:36:31, cpu wrote: > And so the refcount starts at 1 so ...
5 years, 1 month ago (2015-11-21 00:39:48 UTC) #12
cpu_(ooo_6.6-7.5)
regarless of if some ctor does more work than is blessed by the rules, which ...
5 years ago (2015-12-01 00:17:31 UTC) #13
rickyz (no longer on Chrome)
On 2015/12/01 at 00:17:31, cpu wrote: > regarless of if some ctor does more work ...
5 years ago (2015-12-10 02:42:46 UTC) #14
cpu_(ooo_6.6-7.5)
I think a good way to go is to model it based on mojo's. They ...
5 years ago (2015-12-11 18:56:58 UTC) #17
cpu_(ooo_6.6-7.5)
btw I added vtl@ in case you have questions about mojo refcount. As for blocking ...
5 years ago (2015-12-11 18:58:20 UTC) #18
vtl
On 2015/12/11 18:58:20, cpu wrote: > btw I added vtl@ in case you have questions ...
5 years ago (2015-12-11 18:59:35 UTC) #19
cpu_(ooo_6.6-7.5)
anyhow without base's refcount which I thought you added but I don't see it lgtm.
5 years ago (2015-12-11 19:02:11 UTC) #20
rickyz (no longer on Chrome)
Thanks - the base refcounting stuff was in a dependent CL: https://codereview.chromium.org/1378523002 We should probably ...
5 years ago (2015-12-12 00:37:47 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1456663003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1456663003/80001
5 years ago (2015-12-12 00:38:47 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/144190)
5 years ago (2015-12-12 02:19:52 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1456663003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1456663003/80001
5 years ago (2015-12-12 02:26:54 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) android_clang_dbg_recipe on ...
5 years ago (2015-12-12 02:44:31 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1456663003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1456663003/80001
5 years ago (2015-12-12 02:48:00 UTC) #32
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years ago (2015-12-12 04:34:45 UTC) #34
commit-bot: I haz the power
5 years ago (2015-12-12 04:35:50 UTC) #36
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/60f931dc587fee8afbc933ec2d2fac8b24506eed
Cr-Commit-Position: refs/heads/master@{#364904}

Powered by Google App Engine
This is Rietveld 408576698