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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/pretty_diff.py

Issue 2276713002: Remove Command.bind_to_tool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
Index: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/pretty_diff.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/pretty_diff.py b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/pretty_diff.py
index 84d6b161fc4f81b73a3f09dea4cd8025aa4fb2d5..5293ccb16b9345041b152677f33af0ffc10956c2 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/pretty_diff.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/pretty_diff.py
@@ -51,8 +51,10 @@ class PrettyDiff(Command):
"includes the working copy changes. UPSTREAM can be used for the upstream/tracking branch."))
]
super(PrettyDiff, self).__init__(options)
+ self._tool = None
def execute(self, options, args, tool):
+ self._tool = tool
pretty_diff_file = self._show_pretty_diff(options)
if pretty_diff_file:
diff_correct = tool.user.confirm("Was that diff correct?")

Powered by Google App Engine
This is Rietveld 408576698