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

Unified Diff: tools/cr/cr/commands/build.py

Issue 142933004: [cr tool] Make context implicit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/cr/cr/base/platform.py ('k') | tools/cr/cr/commands/command.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/cr/cr/commands/build.py
diff --git a/tools/cr/cr/commands/build.py b/tools/cr/cr/commands/build.py
index 2d2c27fd17807e37f60f8b890740a4535e8369c4..1d33130f2d06a417f158324881c43590102c2c0c 100644
--- a/tools/cr/cr/commands/build.py
+++ b/tools/cr/cr/commands/build.py
@@ -28,9 +28,9 @@ class BuildCommand(cr.Command):
self.ConsumeArgs(parser, 'the builder')
return parser
- def Run(self, context):
+ def Run(self):
return cr.Builder.Build(
- context, cr.Target.GetTargets(context), context.remains)
+ cr.Target.GetTargets(), cr.context.remains)
class CleanCommand(cr.Command):
@@ -52,9 +52,9 @@ class CleanCommand(cr.Command):
self.ConsumeArgs(parser, 'the builder')
return parser
- def Run(self, context):
+ def Run(self):
return cr.Builder.Clean(
- context, cr.Target.GetTargets(context), context.remains)
+ cr.Target.GetTargets(), cr.context.remains)
class RebuildCommand(cr.Command):
@@ -76,6 +76,6 @@ class RebuildCommand(cr.Command):
self.ConsumeArgs(parser, 'the builder')
return parser
- def Run(self, context):
+ def Run(self):
return cr.Builder.Rebuild(
- context, cr.Target.GetTargets(context), context.remains)
+ cr.Target.GetTargets(), cr.context.remains)
« no previous file with comments | « tools/cr/cr/base/platform.py ('k') | tools/cr/cr/commands/command.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698