| Index: tools/chrome_remote_control/chrome_remote_control/page_set.py
|
| diff --git a/tools/chrome_remote_control/chrome_remote_control/page_set.py b/tools/chrome_remote_control/chrome_remote_control/page_set.py
|
| index 1850e5b05474947960f50e7c3886ad8280c3fb12..b6523c9c9f17b45977f28f5c1f43967b3af5829a 100644
|
| --- a/tools/chrome_remote_control/chrome_remote_control/page_set.py
|
| +++ b/tools/chrome_remote_control/chrome_remote_control/page_set.py
|
| @@ -15,8 +15,9 @@ class Page(object):
|
| return self.url
|
|
|
| class PageSet(object):
|
| - def __init__(self, description='', file_path=''):
|
| + def __init__(self, description='', archive_path='', file_path=''):
|
| self.description = description
|
| + self.archive_path = archive_path
|
| self.file_path = file_path
|
| self.pages = []
|
|
|
| @@ -29,7 +30,7 @@ class PageSet(object):
|
|
|
| @classmethod
|
| def FromDict(cls, data, file_path=''):
|
| - page_set = cls(data['description'], file_path)
|
| + page_set = cls(data['description'], data['archive_path'], file_path)
|
| for page_attributes in data['pages']:
|
| url = page_attributes.pop('url')
|
| page = Page(url, **page_attributes)
|
|
|