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

Unified Diff: tools/perf/measurements/session_restore_with_url.py

Issue 113563004: Add perf tests for starting Chrome with URL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Improve name of option setting methords Created 6 years, 11 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
« no previous file with comments | « tools/perf/measurements/session_restore.py ('k') | tools/perf/measurements/startup.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/measurements/session_restore_with_url.py
diff --git a/tools/perf/measurements/session_restore_with_url.py b/tools/perf/measurements/session_restore_with_url.py
new file mode 100644
index 0000000000000000000000000000000000000000..81244c969a29b8e33533f58d8e7e70e382bc10ba
--- /dev/null
+++ b/tools/perf/measurements/session_restore_with_url.py
@@ -0,0 +1,15 @@
+# Copyright 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from measurements import session_restore
+
+
+class SessionRestoreWithUrl(session_restore.SessionRestore):
+
+ def __init__(self):
+ super(SessionRestoreWithUrl, self).__init__()
+
+ def CanRunForPage(self, page):
+ # Run for every page in the page set that has a startup url.
+ return page.hasattr('startup_url')
« no previous file with comments | « tools/perf/measurements/session_restore.py ('k') | tools/perf/measurements/startup.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698