|
|
[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
Total comments: 8
|
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
|
Total messages: 17 (0 generated)
|