OLD | NEW |
---|---|
(Empty) | |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 from measurements import session_restore | |
6 | |
7 | |
8 class SessionRestoreWithUrl(session_restore.SessionRestore): | |
9 | |
10 def __init__(self): | |
11 super(SessionRestoreWithUrl, self).__init__() | |
12 | |
13 def CanRunForPage(self, page): | |
14 # The session restore tests ignore the contents of the page set, so only | |
jeremy
2013/12/17 11:29:44
nit s/so/so they/
aberent
2013/12/17 17:31:27
Actually changing the function to check that the p
| |
15 # run for the first page in the set. This test, however, uses the | |
16 # set_startup_url attribute of pages in the page set, which may differ | |
17 # between the pages so it makes sense to run it for every page in the page | |
jeremy
2013/12/17 11:29:44
nit: How about changing this to something like -
aberent
2013/12/17 17:31:27
See above
| |
18 # set. | |
19 return True | |
OLD | NEW |