Index: tools/push-to-trunk/chromium_roll.py |
diff --git a/tools/push-to-trunk/chromium_roll.py b/tools/push-to-trunk/chromium_roll.py |
index 35603a21fac40b46e65fb25e70f28f83494a4332..dc5e6eba22ee14dd66137c9fd20bdc7feba1f436 100755 |
--- a/tools/push-to-trunk/chromium_roll.py |
+++ b/tools/push-to-trunk/chromium_roll.py |
@@ -9,12 +9,6 @@ import sys |
from common_includes import * |
-CHROMIUM = "CHROMIUM" |
- |
-CONFIG = { |
- PERSISTFILE_BASENAME: "/tmp/v8-chromium-roll-tempfile", |
-} |
- |
class Preparation(Step): |
MESSAGE = "Preparation." |
@@ -116,7 +110,7 @@ class CleanUp(Step): |
% self["trunk_revision"]) |
# Clean up all temporary files. |
- Command("rm", "-f %s*" % self._config[PERSISTFILE_BASENAME]) |
+ Command("rm", "-f %s*" % self._config["PERSISTFILE_BASENAME"]) |
class ChromiumRoll(ScriptsBase): |
@@ -140,6 +134,11 @@ class ChromiumRoll(ScriptsBase): |
options.manual = False |
return True |
+ def _Config(self): |
+ return { |
+ "PERSISTFILE_BASENAME": "/tmp/v8-chromium-roll-tempfile", |
+ } |
+ |
def _Steps(self): |
return [ |
Preparation, |
@@ -154,4 +153,4 @@ class ChromiumRoll(ScriptsBase): |
if __name__ == "__main__": # pragma: no cover |
- sys.exit(ChromiumRoll(CONFIG).Run()) |
+ sys.exit(ChromiumRoll().Run()) |