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

Issue 1441853003: Make the new Mojo EDK work on XP. (Closed)

Created:
5 years, 1 month ago by jam
Modified:
5 years, 1 month 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
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make the new Mojo EDK work on XP. Main points to note: -child processes started by Mojo inherit all inheritable handles. This isn't good security wise, but is needed because UpdateProcThreadAttribute doesn't exist on XP. I added a CHECK to ensure we don't use this code in production. -when sending a pipe, if there's a pending read then we block the current thread to call CancelIo on the IO thread. This is because CancelIOEx, which cancels process-wide, doesn't exist. In practice, this is not a major concern because we only start reading from a pipe once the mojo primitive is read/written to, and once that happens we almost never send the pipe. BUG=478251 Committed: https://crrev.com/12d28add8388f5ea5760783a2817eca3a9a722a1 Cr-Commit-Position: refs/heads/master@{#359632}

Patch Set 1 #

Patch Set 2 : add CHECK #

Patch Set 3 : test fixes #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -13 lines) Patch
M base/sys_info_win.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M mojo/edk/embedder/platform_channel_pair_win.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M mojo/edk/embedder/simple_platform_shared_buffer_unittest.cc View 1 2 2 chunks +10 lines, -3 lines 0 comments Download
M mojo/edk/system/core_unittest.cc View 1 2 2 chunks +10 lines, -0 lines 3 comments Download
M mojo/edk/system/raw_channel_win.cc View 5 chunks +27 lines, -4 lines 0 comments Download
M mojo/edk/test/multiprocess_test_helper.cc View 2 chunks +8 lines, -1 line 0 comments Download
M mojo/runner/host/child_process_host.cc View 1 2 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 15 (4 generated)
jam
5 years, 1 month ago (2015-11-13 16:33:21 UTC) #4
yzshen1
LGTM To make sure I understand correctly: We will use the new EDK in production ...
5 years, 1 month ago (2015-11-13 17:00:30 UTC) #5
jam
On 2015/11/13 17:00:30, yzshen1 wrote: > LGTM > > To make sure I understand correctly: ...
5 years, 1 month ago (2015-11-13 17:08:51 UTC) #6
jam
On 2015/11/13 17:08:51, jam wrote: > On 2015/11/13 17:00:30, yzshen1 wrote: > > LGTM > ...
5 years, 1 month ago (2015-11-13 18:10:55 UTC) #7
yzshen1
https://codereview.chromium.org/1441853003/diff/40001/mojo/edk/system/core_unittest.cc File mojo/edk/system/core_unittest.cc (right): https://codereview.chromium.org/1441853003/diff/40001/mojo/edk/system/core_unittest.cc#newcode721 mojo/edk/system/core_unittest.cc:721: #if defined(OS_WIN) Please use #if #endif around complete statements: ...
5 years, 1 month ago (2015-11-13 18:27:07 UTC) #8
yzshen1
https://codereview.chromium.org/1441853003/diff/40001/mojo/edk/system/core_unittest.cc File mojo/edk/system/core_unittest.cc (right): https://codereview.chromium.org/1441853003/diff/40001/mojo/edk/system/core_unittest.cc#newcode721 mojo/edk/system/core_unittest.cc:721: #if defined(OS_WIN) Maybe: bool write_message = true; #if defined(OS_WIN) ...
5 years, 1 month ago (2015-11-13 18:31:06 UTC) #9
jam
https://codereview.chromium.org/1441853003/diff/40001/mojo/edk/system/core_unittest.cc File mojo/edk/system/core_unittest.cc (right): https://codereview.chromium.org/1441853003/diff/40001/mojo/edk/system/core_unittest.cc#newcode721 mojo/edk/system/core_unittest.cc:721: #if defined(OS_WIN) On 2015/11/13 18:31:06, yzshen1 wrote: > Maybe: ...
5 years, 1 month ago (2015-11-13 18:35:46 UTC) #10
yzshen1
On 2015/11/13 18:35:46, jam wrote: > https://codereview.chromium.org/1441853003/diff/40001/mojo/edk/system/core_unittest.cc > File mojo/edk/system/core_unittest.cc (right): > > https://codereview.chromium.org/1441853003/diff/40001/mojo/edk/system/core_unittest.cc#newcode721 > ...
5 years, 1 month ago (2015-11-13 18:54:29 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1441853003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1441853003/40001
5 years, 1 month ago (2015-11-13 20:39:57 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 1 month ago (2015-11-13 20:58:37 UTC) #14
commit-bot: I haz the power
5 years, 1 month ago (2015-11-13 21:00:05 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/12d28add8388f5ea5760783a2817eca3a9a722a1
Cr-Commit-Position: refs/heads/master@{#359632}

Powered by Google App Engine
This is Rietveld 408576698