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

Unified Diff: tools/cr/cr/commands/prepare.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/commands/install.py ('k') | tools/cr/cr/commands/run.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/cr/cr/commands/prepare.py
diff --git a/tools/cr/cr/commands/prepare.py b/tools/cr/cr/commands/prepare.py
index 57abccef6bbf64be7cbe181710de8bde6f1a1035..a9418d9dce08a3cd19f51e6756155ca62adfaade 100644
--- a/tools/cr/cr/commands/prepare.py
+++ b/tools/cr/cr/commands/prepare.py
@@ -26,13 +26,13 @@ class PrepareCommand(cr.Command):
running gyp.
""")
- def Run(self, context):
- self.Prepare(context)
+ def Run(self):
+ self.Prepare()
@classmethod
- def Prepare(cls, context):
+ def Prepare(cls):
for preparation in PrepareOut.Plugins():
- preparation.Prepare(context)
+ preparation.Prepare()
class PrepareOut(cr.Plugin, cr.Plugin.Type):
@@ -41,8 +41,7 @@ class PrepareOut(cr.Plugin, cr.Plugin.Type):
See PrepareCommand for details.
"""
- def Prepare(self, context):
+ def Prepare(self):
"""All PrepareOut plugins must override this method to do their work."""
- _ = context
raise NotImplementedError('Must be overridden.')
« no previous file with comments | « tools/cr/cr/commands/install.py ('k') | tools/cr/cr/commands/run.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698