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

Issue 142933004: [cr tool] Make context implicit (Closed)

Created:
6 years, 11 months ago by ian_cottrell
Modified:
6 years, 9 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[cr tool] Make context implicit This removes context from many function signatures, and instead adds cr.context to access the current context. This will allow a few places that are currently ugly to be cleaned up, make it possible to access the context from inside some properties, and make it easy to hijack for testing purposes. BUG=336240 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=258609

Patch Set 1 #

Patch Set 2 : Rebase to current master #

Patch Set 3 : rebase #

Total comments: 8

Patch Set 4 : Comment fixes #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+347 lines, -593 lines) Patch
M tools/cr/cr/actions/action.py View 2 chunks +1 line, -3 lines 0 comments Download
M tools/cr/cr/actions/adb.py View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M tools/cr/cr/actions/builder.py View 1 2 3 chunks +12 lines, -12 lines 0 comments Download
M tools/cr/cr/actions/debugger.py View 1 chunk +9 lines, -9 lines 0 comments Download
M tools/cr/cr/actions/gdb.py View 2 chunks +2 lines, -2 lines 0 comments Download
M tools/cr/cr/actions/gyp.py View 1 chunk +3 lines, -4 lines 0 comments Download
M tools/cr/cr/actions/installer.py View 2 chunks +7 lines, -7 lines 0 comments Download
M tools/cr/cr/actions/linux.py View 2 chunks +7 lines, -7 lines 0 comments Download
M tools/cr/cr/actions/ninja.py View 3 chunks +6 lines, -10 lines 0 comments Download
M tools/cr/cr/actions/runner.py View 2 chunks +12 lines, -12 lines 0 comments Download
M tools/cr/cr/autocomplete.py View 1 chunk +1 line, -5 lines 0 comments Download
M tools/cr/cr/base/android.py View 1 2 3 4 chunks +11 lines, -11 lines 0 comments Download
M tools/cr/cr/base/client.py View 1 7 chunks +24 lines, -32 lines 0 comments Download
A + tools/cr/cr/base/context.py View 1 2 3 7 chunks +27 lines, -19 lines 0 comments Download
M tools/cr/cr/base/host.py View 1 2 3 4 chunks +23 lines, -25 lines 0 comments Download
M tools/cr/cr/base/platform.py View 2 chunks +8 lines, -8 lines 0 comments Download
M tools/cr/cr/commands/build.py View 3 chunks +6 lines, -6 lines 0 comments Download
M tools/cr/cr/commands/command.py View 3 chunks +7 lines, -15 lines 0 comments Download
M tools/cr/cr/commands/debug.py View 1 chunk +10 lines, -10 lines 0 comments Download
M tools/cr/cr/commands/info.py View 1 chunk +9 lines, -9 lines 0 comments Download
M tools/cr/cr/commands/init.py View 7 chunks +23 lines, -23 lines 0 comments Download
M tools/cr/cr/commands/install.py View 1 chunk +5 lines, -5 lines 0 comments Download
M tools/cr/cr/commands/prepare.py View 2 chunks +5 lines, -6 lines 0 comments Download
M tools/cr/cr/commands/run.py View 1 chunk +9 lines, -9 lines 0 comments Download
M tools/cr/cr/commands/select.py View 1 chunk +8 lines, -10 lines 0 comments Download
M tools/cr/cr/commands/shell.py View 2 chunks +5 lines, -5 lines 0 comments Download
M tools/cr/cr/commands/sync.py View 1 1 chunk +4 lines, -5 lines 0 comments Download
M tools/cr/cr/config.py View 2 chunks +6 lines, -6 lines 0 comments Download
D tools/cr/cr/context.py View 1 1 chunk +0 lines, -223 lines 0 comments Download
M tools/cr/cr/fixups/arch.py View 1 chunk +1 line, -1 line 0 comments Download
M tools/cr/cr/loader.py View 1 1 chunk +1 line, -0 lines 0 comments Download
M tools/cr/cr/plugin.py View 1 6 chunks +15 lines, -17 lines 0 comments Download
M tools/cr/cr/targets/target.py View 1 2 7 chunks +16 lines, -18 lines 0 comments Download
M tools/cr/main.py View 2 chunks +58 lines, -53 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
ian_cottrell
6 years, 11 months ago (2014-01-22 16:13:52 UTC) #1
Andrew Hayden (chromium.org)
All I see are issues with comments, so LGTM. https://codereview.chromium.org/142933004/diff/220001/tools/cr/cr/base/android.py File tools/cr/cr/base/android.py (right): https://codereview.chromium.org/142933004/diff/220001/tools/cr/cr/base/android.py#newcode64 tools/cr/cr/base/android.py:64: ...
6 years, 9 months ago (2014-03-19 18:20:06 UTC) #2
iancottrell
https://codereview.chromium.org/142933004/diff/220001/tools/cr/cr/base/android.py File tools/cr/cr/base/android.py (right): https://codereview.chromium.org/142933004/diff/220001/tools/cr/cr/base/android.py#newcode64 tools/cr/cr/base/android.py:64: # Run env setup and capture/parse it's output On ...
6 years, 9 months ago (2014-03-19 22:17:11 UTC) #3
Andrew Hayden (chromium.org)
> No, print adds the space for you. Python sometimes makes me happy, sometimes makes ...
6 years, 9 months ago (2014-03-20 08:08:50 UTC) #4
ian_cottrell
6 years, 9 months ago (2014-03-20 10:21:56 UTC) #5
rmcilroy
On 2014/03/20 10:21:56, ian_cottrell wrote: Looks good. lgtm!
6 years, 9 months ago (2014-03-20 10:28:50 UTC) #6
ian_cottrell
The CQ bit was checked by iancottrell@chromium.org
6 years, 9 months ago (2014-03-20 10:49:12 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/iancottrell@chromium.org/142933004/240001
6 years, 9 months ago (2014-03-20 10:49:35 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-20 11:18:28 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_clang_dbg
6 years, 9 months ago (2014-03-20 11:18:29 UTC) #10
ian_cottrell
The CQ bit was checked by iancottrell@chromium.org
6 years, 9 months ago (2014-03-20 17:42:43 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/iancottrell@chromium.org/142933004/240001
6 years, 9 months ago (2014-03-20 17:50:07 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-20 17:57:22 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_clang_dbg
6 years, 9 months ago (2014-03-20 17:57:23 UTC) #14
iancottrell
The CQ bit was checked by iancottrell@google.com
6 years, 9 months ago (2014-03-21 14:50:46 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/iancottrell@chromium.org/142933004/260001
6 years, 9 months ago (2014-03-21 14:50:50 UTC) #16
commit-bot: I haz the power
6 years, 9 months ago (2014-03-21 16:50:12 UTC) #17
Message was sent while issue was closed.
Change committed as 258609

Powered by Google App Engine
This is Rietveld 408576698