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

Unified Diff: scripts/master/factory/annotator_factory.py

Issue 955153003: ActiveMaster in AnnotationObserver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 5 years, 10 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 | « scripts/master/factory/annotator_commands.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/master/factory/annotator_factory.py
diff --git a/scripts/master/factory/annotator_factory.py b/scripts/master/factory/annotator_factory.py
index 9456ea1ee037e1fba69f22f2c5f438e97e9da288..f5d3741c99ab119b57646f0e331d6f77f6cce3a2 100644
--- a/scripts/master/factory/annotator_factory.py
+++ b/scripts/master/factory/annotator_factory.py
@@ -17,8 +17,9 @@ from master.factory.build_factory import BuildFactory
class AnnotatorFactory(object):
"""Encapsulates data and methods common to all annotators."""
- def __init__(self):
+ def __init__(self, active_master=None):
self._factory_properties = None
+ self.active_master = active_master
def BaseFactory(self, recipe=None, factory_properties=None, triggers=None,
timeout=1200, max_time=None):
@@ -50,7 +51,8 @@ class AnnotatorFactory(object):
self._factory_properties = factory_properties
factory = BuildFactory()
factory.properties.update(self._factory_properties, 'AnnotatorFactory')
- cmd_obj = annotator_commands.AnnotatorCommands(factory)
+ cmd_obj = annotator_commands.AnnotatorCommands(
+ factory, active_master=self.active_master)
cmd_obj.AddAnnotatedScript(
factory_properties, timeout=timeout, max_time=max_time)
« no previous file with comments | « scripts/master/factory/annotator_commands.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698