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

Issue 2084993002: Mojo: add support for disallowing sync calls for a process. (Closed)

Created:
4 years, 6 months ago by yzshen1
Modified:
4 years, 6 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, jam, qsr+mojo_chromium.org, rjkroege, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mojo: add support for disallowing sync calls for a process. This CLs introduce a new system API to expose the configuration whether sync calls are allowed to mojo apps. The bindings check this configuration before processing a sync call (if DCHECK is enabled). This CL also disables sync calls for the browser process. BUG=620733 Committed: https://crrev.com/519639829bd17eaae4b147f7a96cbd1406fc6244 Cr-Commit-Position: refs/heads/master@{#401076}

Patch Set 1 #

Total comments: 4

Patch Set 2 : . #

Total comments: 1

Patch Set 3 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+276 lines, -7 lines) Patch
M base/threading/thread_restrictions.h View 2 chunks +2 lines, -2 lines 0 comments Download
M components/mus/common/gpu_service.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M mojo/edk/embedder/embedder.h View 1 chunk +9 lines, -0 lines 0 comments Download
M mojo/edk/embedder/embedder.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M mojo/edk/embedder/entrypoints.cc View 2 chunks +6 lines, -1 line 0 comments Download
M mojo/edk/system/core.h View 3 chunks +7 lines, -0 lines 0 comments Download
M mojo/edk/system/core.cc View 2 chunks +22 lines, -0 lines 0 comments Download
M mojo/mojo_public.gypi View 2 chunks +2 lines, -0 lines 0 comments Download
M mojo/public/c/system/functions.h View 1 chunk +10 lines, -0 lines 0 comments Download
M mojo/public/c/system/thunks.h View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/c/system/thunks.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M mojo/public/c/system/types.h View 1 chunk +14 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/lib/interface_endpoint_client.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/lib/router.cc View 2 chunks +3 lines, -0 lines 0 comments Download
A mojo/public/cpp/bindings/lib/sync_call_restrictions.cc View 1 2 1 chunk +91 lines, -0 lines 0 comments Download
A mojo/public/cpp/bindings/sync_call_restrictions.h View 1 1 chunk +83 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
yzshen1
Hi, Ken and John. Would you please take a look? Thanks! https://codereview.chromium.org/2084993002/diff/1/mojo/edk/system/core.h File mojo/edk/system/core.h (right): ...
4 years, 6 months ago (2016-06-21 16:45:42 UTC) #2
jam
lgtm https://codereview.chromium.org/2084993002/diff/1/mojo/public/cpp/bindings/sync_call_restrictions.h File mojo/public/cpp/bindings/sync_call_restrictions.h (right): https://codereview.chromium.org/2084993002/diff/1/mojo/public/cpp/bindings/sync_call_restrictions.h#newcode43 mojo/public/cpp/bindings/sync_call_restrictions.h:43: // DO NOT ADD ANY OTHER FRIEND STATEMENTS, ...
4 years, 6 months ago (2016-06-21 17:00:33 UTC) #3
yzshen1
https://codereview.chromium.org/2084993002/diff/1/mojo/public/cpp/bindings/sync_call_restrictions.h File mojo/public/cpp/bindings/sync_call_restrictions.h (right): https://codereview.chromium.org/2084993002/diff/1/mojo/public/cpp/bindings/sync_call_restrictions.h#newcode43 mojo/public/cpp/bindings/sync_call_restrictions.h:43: // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk ...
4 years, 6 months ago (2016-06-21 17:35:50 UTC) #4
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/2084993002/diff/20001/mojo/public/cpp/bindings/lib/sync_call_restrictions.cc File mojo/public/cpp/bindings/lib/sync_call_restrictions.cc (right): https://codereview.chromium.org/2084993002/diff/20001/mojo/public/cpp/bindings/lib/sync_call_restrictions.cc#newcode71 mojo/public/cpp/bindings/lib/sync_call_restrictions.cc:71: LOG(FATAL) << "Mojo sync calls are not allowed ...
4 years, 6 months ago (2016-06-21 17:51:12 UTC) #5
yzshen1
On 2016/06/21 17:51:12, Ken Rockot wrote: > lgtm > > https://codereview.chromium.org/2084993002/diff/20001/mojo/public/cpp/bindings/lib/sync_call_restrictions.cc > File mojo/public/cpp/bindings/lib/sync_call_restrictions.cc (right): ...
4 years, 6 months ago (2016-06-21 18:07:18 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2084993002/40001
4 years, 6 months ago (2016-06-21 18:08:08 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-21 19:37:29 UTC) #10
commit-bot: I haz the power
4 years, 6 months ago (2016-06-21 19:41:51 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/519639829bd17eaae4b147f7a96cbd1406fc6244
Cr-Commit-Position: refs/heads/master@{#401076}

Powered by Google App Engine
This is Rietveld 408576698