diff options
author | dtu@chromium.org <dtu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-03 22:35:31 +0000 |
---|---|---|
committer | dtu@chromium.org <dtu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-03 22:35:31 +0000 |
commit | dc973e355e9cdc956f216b808755fc571816e617 (patch) | |
tree | be65ca58eb469c3149b5256a2f399ba4adca4667 /tools | |
parent | 4dba9ff791baae70533e0da3e183ff49e554d144 (diff) | |
download | chromium_src-dc973e355e9cdc956f216b808755fc571816e617.zip chromium_src-dc973e355e9cdc956f216b808755fc571816e617.tar.gz chromium_src-dc973e355e9cdc956f216b808755fc571816e617.tar.bz2 |
[telemetry] Separate dynamic attributes from page members.
Fix for http://crrev.com/192096. Sigh
TBR=marja@chromium.org
BUG=None.
TEST=None.
Review URL: https://codereview.chromium.org/13587006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192174 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rw-r--r-- | tools/telemetry/telemetry/page/page.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tools/telemetry/telemetry/page/page.py b/tools/telemetry/telemetry/page/page.py index da811ac..0185021 100644 --- a/tools/telemetry/telemetry/page/page.py +++ b/tools/telemetry/telemetry/page/page.py @@ -20,10 +20,14 @@ class Page(object): self.url = url self.page_set = page_set self.base_dir = base_dir - self.credentials = None - self.disabled = False - self.wait_time_after_navigate = 2 - self._attributes = attributes + + # These _attributes can be set dynamically by the page. + self._attributes = {} + self._attributes['credentials'] = None + self._attributes['disabled'] = False + self._attributes['wait_time_after_navigate'] = 2 + if attributes: + self._attributes.update(attributes) def __getattr__(self, name): if name in self._attributes: |