| Index: tools/telemetry/telemetry/compound_interaction.py
|
| diff --git a/tools/telemetry/telemetry/compound_interaction.py b/tools/telemetry/telemetry/compound_interaction.py
|
| index 2ff48b036dbe2c7da56291ec6de5a0a9061f2c96..5e93cf84b74675ba52db83d20d47d9f9c479cbea 100644
|
| --- a/tools/telemetry/telemetry/compound_interaction.py
|
| +++ b/tools/telemetry/telemetry/compound_interaction.py
|
| @@ -6,12 +6,17 @@ from telemetry import page_interaction
|
| class CompoundInteraction(page_interaction.PageInteraction):
|
| def __init__(self, attributes=None):
|
| super(CompoundInteraction, self).__init__(attributes)
|
| -
|
| - def PerformInteraction(self, page, tab):
|
| + self._interaction_list = []
|
| + from telemetry import all_page_interactions
|
| for interaction_data in self.actions:
|
| - interaction = page_interaction.FindClassWithName(
|
| + interaction = all_page_interactions.FindClassWithName(
|
| interaction_data['action'])(interaction_data)
|
| - interaction.PerformInteraction(page, tab)
|
| + self._interaction_list.append(interaction)
|
|
|
| + def CustomizeBrowserOptions(self, options):
|
| + for interaction in self._interaction_list:
|
| + interaction.CustomizeBrowserOptions(options)
|
|
|
| -page_interaction.RegisterClass('compound', CompoundInteraction)
|
| + def PerformInteraction(self, page, tab):
|
| + for interaction in self._interaction_list:
|
| + interaction.PerformInteraction(page, tab)
|
|
|