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

Unified Diff: tools/chrome_remote_control/chrome_remote_control/page_set.py

Issue 10965027: Add web page replay to chrome_remote_control. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
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)

Powered by Google App Engine
This is Rietveld 408576698