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

Unified Diff: tools/cr/cr/actions/ninja.py

Issue 116363002: [cr tool] Fixing import problems (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change the place we hook late detection from Created 6 years, 11 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/actions/gdb.py ('k') | tools/cr/cr/commands/sync.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/cr/cr/actions/ninja.py
diff --git a/tools/cr/cr/actions/ninja.py b/tools/cr/cr/actions/ninja.py
index 404e6caea26e11360bf1b874e72c8de38f3fd697..fda217a6d9b27fb22f2f0e1091f34bae3e2fbd2e 100644
--- a/tools/cr/cr/actions/ninja.py
+++ b/tools/cr/cr/actions/ninja.py
@@ -77,10 +77,8 @@ class NinjaBuilder(cr.Builder):
return self._targets
@classmethod
- def DetectNinja(cls):
+ def ClassInit(cls):
# TODO(iancottrell): If we can't detect ninja, we should be disabled.
ninja_binaries = cr.Host.SearchPath('ninja')
if ninja_binaries:
cls.DETECTED.Set(NINJA_BINARY=ninja_binaries[0])
-
-NinjaBuilder.DetectNinja()
« no previous file with comments | « tools/cr/cr/actions/gdb.py ('k') | tools/cr/cr/commands/sync.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698