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

Issue 792843002: Refactor the python system_impl module. (Closed)

Created:
6 years ago by etiennej
Modified:
6 years ago
Reviewers:
qsr
CC:
mojo-reviews_chromium.org, 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:
git@github.com:domokit/mojo.git@master
Project:
mojo
Visibility:
Public.

Description

Refactor the python system_impl module. Extract reusable code into a common library and isolate environment-specific logic. This allows the upcoming python content handler to implement only the base::-specific logic around RunLoop and AsyncWaiter before injecting it. R=qsr@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/0e776c2f77c489164b512bb7e33640088caadc55

Patch Set 1 #

Total comments: 14

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 14

Patch Set 5 : #

Total comments: 6

Patch Set 6 : Rebase, does not work #

Patch Set 7 : Fixes #

Total comments: 6

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Total comments: 2

Patch Set 12 : #

Total comments: 2

Patch Set 13 : #

Total comments: 2

Patch Set 14 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+291 lines, -331 lines) Patch
M mojo/PRESUBMIT.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -3 lines 0 comments Download
M mojo/PRESUBMIT_test.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -0 lines 0 comments Download
M mojo/public/python/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +35 lines, -6 lines 0 comments Download
A + mojo/public/python/mojo/c_async_waiter.pxd View 1 2 3 3 chunks +2 lines, -23 lines 0 comments Download
M mojo/public/python/mojo/c_core.pxd View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -9 lines 0 comments Download
M mojo/public/python/mojo/c_environment.pxd View 1 2 3 2 chunks +2 lines, -16 lines 0 comments Download
A mojo/public/python/mojo/c_export.pxd View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -0 lines 0 comments Download
A mojo/public/python/mojo/c_thunks.pxd View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -0 lines 0 comments Download
M mojo/public/python/mojo/system.pyx View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -5 lines 0 comments Download
M mojo/public/python/mojo/system_impl.pyx View 1 2 3 4 5 6 7 8 9 3 chunks +10 lines, -10 lines 0 comments Download
A mojo/public/python/src/common.h View 1 2 3 4 5 6 7 1 chunk +103 lines, -0 lines 0 comments Download
A + mojo/public/python/src/common.cc View 1 2 3 4 5 6 4 chunks +73 lines, -79 lines 0 comments Download
M mojo/public/python/src/python_system_helper.h View 1 chunk +7 lines, -27 lines 0 comments Download
M mojo/public/python/src/python_system_helper.cc View 1 2 3 4 1 chunk +11 lines, -147 lines 0 comments Download
M mojo/python/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -6 lines 0 comments Download
M mojo/python/system/mojo/embedder.pyx View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (1 generated)
etiennej
6 years ago (2014-12-10 15:06:49 UTC) #1
qsr
https://codereview.chromium.org/792843002/diff/1/mojo/public/python/BUILD.gn File mojo/public/python/BUILD.gn (left): https://codereview.chromium.org/792843002/diff/1/mojo/public/python/BUILD.gn#oldcode23 mojo/public/python/BUILD.gn:23: configs = [ "../build/config:mojo_sdk" ] You need to keep ...
6 years ago (2014-12-10 15:38:57 UTC) #2
etiennej
https://codereview.chromium.org/792843002/diff/1/mojo/public/python/BUILD.gn File mojo/public/python/BUILD.gn (left): https://codereview.chromium.org/792843002/diff/1/mojo/public/python/BUILD.gn#oldcode23 mojo/public/python/BUILD.gn:23: configs = [ "../build/config:mojo_sdk" ] On 2014/12/10 15:38:57, qsr ...
6 years ago (2014-12-11 09:52:53 UTC) #3
etiennej
Reworked rules.gni
6 years ago (2014-12-11 10:59:14 UTC) #4
qsr
https://codereview.chromium.org/792843002/diff/60001/mojo/public/python/src/common.cc File mojo/public/python/src/common.cc (left): https://codereview.chromium.org/792843002/diff/60001/mojo/public/python/src/common.cc#oldcode177 mojo/public/python/src/common.cc:177: Please keep this blank line. https://codereview.chromium.org/792843002/diff/60001/mojo/public/python/src/common.cc File mojo/public/python/src/common.cc (right): ...
6 years ago (2014-12-12 09:09:54 UTC) #5
etiennej
https://codereview.chromium.org/792843002/diff/60001/mojo/public/python/src/common.cc File mojo/public/python/src/common.cc (left): https://codereview.chromium.org/792843002/diff/60001/mojo/public/python/src/common.cc#oldcode177 mojo/public/python/src/common.cc:177: On 2014/12/12 09:09:53, qsr wrote: > Please keep this ...
6 years ago (2014-12-12 10:58:25 UTC) #6
etiennej
I just rebase this CL on HEAD, and there seems to be issues. I'll investigate ...
6 years ago (2014-12-12 12:23:28 UTC) #7
qsr
https://codereview.chromium.org/792843002/diff/60001/third_party/cython/rules.gni File third_party/cython/rules.gni (right): https://codereview.chromium.org/792843002/diff/60001/third_party/cython/rules.gni#newcode51 third_party/cython/rules.gni:51: deps = [] On 2014/12/12 10:58:25, etiennej wrote: > ...
6 years ago (2014-12-12 12:27:46 UTC) #8
etiennej
https://codereview.chromium.org/792843002/diff/60001/third_party/cython/rules.gni File third_party/cython/rules.gni (right): https://codereview.chromium.org/792843002/diff/60001/third_party/cython/rules.gni#newcode51 third_party/cython/rules.gni:51: deps = [] On 2014/12/12 12:27:45, qsr wrote: > ...
6 years ago (2014-12-12 13:39:46 UTC) #9
qsr
LGTM with nits. https://codereview.chromium.org/792843002/diff/120001/mojo/public/python/BUILD.gn File mojo/public/python/BUILD.gn (right): https://codereview.chromium.org/792843002/diff/120001/mojo/public/python/BUILD.gn#newcode38 mojo/public/python/BUILD.gn:38: ":base", Local dependencies must be first. ...
6 years ago (2014-12-12 14:27:06 UTC) #10
etiennej
https://codereview.chromium.org/792843002/diff/120001/mojo/public/python/BUILD.gn File mojo/public/python/BUILD.gn (right): https://codereview.chromium.org/792843002/diff/120001/mojo/public/python/BUILD.gn#newcode38 mojo/public/python/BUILD.gn:38: ":base", On 2014/12/12 14:27:06, qsr wrote: > Local dependencies ...
6 years ago (2014-12-12 15:29:36 UTC) #11
etiennej
You can take another look. The main differences are: - merging with the current tree ...
6 years ago (2014-12-17 10:44:52 UTC) #13
qsr
https://codereview.chromium.org/792843002/diff/220001/mojo/PRESUBMIT_test.py File mojo/PRESUBMIT_test.py (right): https://codereview.chromium.org/792843002/diff/220001/mojo/PRESUBMIT_test.py#newcode205 mojo/PRESUBMIT_test.py:205: """Tests that a source_set within an SDK buildfile is ...
6 years ago (2014-12-17 12:17:39 UTC) #14
etiennej
https://codereview.chromium.org/792843002/diff/220001/mojo/PRESUBMIT_test.py File mojo/PRESUBMIT_test.py (right): https://codereview.chromium.org/792843002/diff/220001/mojo/PRESUBMIT_test.py#newcode205 mojo/PRESUBMIT_test.py:205: """Tests that a source_set within an SDK buildfile is ...
6 years ago (2014-12-17 12:19:39 UTC) #15
qsr
https://codereview.chromium.org/792843002/diff/240001/mojo/PRESUBMIT.py File mojo/PRESUBMIT.py (right): https://codereview.chromium.org/792843002/diff/240001/mojo/PRESUBMIT.py#newcode24 mojo/PRESUBMIT.py:24: "python_binary_source_set"], Did you write a bug to figure out ...
6 years ago (2014-12-17 12:22:53 UTC) #16
etiennej
https://codereview.chromium.org/792843002/diff/240001/mojo/PRESUBMIT.py File mojo/PRESUBMIT.py (right): https://codereview.chromium.org/792843002/diff/240001/mojo/PRESUBMIT.py#newcode24 mojo/PRESUBMIT.py:24: "python_binary_source_set"], On 2014/12/17 12:22:53, qsr wrote: > Did you ...
6 years ago (2014-12-17 13:01:06 UTC) #17
qsr
LGTM with nits. https://codereview.chromium.org/792843002/diff/260001/mojo/PRESUBMIT.py File mojo/PRESUBMIT.py (right): https://codereview.chromium.org/792843002/diff/260001/mojo/PRESUBMIT.py#newcode24 mojo/PRESUBMIT.py:24: # python_binary_source_set added due to crbug.com/443147 ...
6 years ago (2014-12-17 13:02:51 UTC) #18
etiennej
https://codereview.chromium.org/792843002/diff/260001/mojo/PRESUBMIT.py File mojo/PRESUBMIT.py (right): https://codereview.chromium.org/792843002/diff/260001/mojo/PRESUBMIT.py#newcode24 mojo/PRESUBMIT.py:24: # python_binary_source_set added due to crbug.com/443147 On 2014/12/17 13:02:51, ...
6 years ago (2014-12-17 13:04:31 UTC) #19
etiennej
6 years ago (2014-12-17 13:26:32 UTC) #20
Message was sent while issue was closed.
Committed patchset #14 (id:280001) manually as
0e776c2f77c489164b512bb7e33640088caadc55 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698