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

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: Replace CreateForwarder with CreateReplayServer Created 8 years, 2 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 02d121128962ceb4fc81ffcae8be312d197f2646..b96f1201ef7853e3649c77acb922e0cc95573086 100644
--- a/tools/chrome_remote_control/chrome_remote_control/page_set.py
+++ b/tools/chrome_remote_control/chrome_remote_control/page_set.py
@@ -24,8 +24,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 = []
@@ -38,7 +39,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