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

Unified Diff: tools/perf/page_sets/profile_safe_urls.py

Issue 2629413002: [tools/perf] Trim down story name that has more than 180 charaters (Closed)
Patch Set: Created 3 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 | « no previous file | tools/perf/page_sets/top_desktop_sites_2012Q3.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/profile_safe_urls.py
diff --git a/tools/perf/page_sets/profile_safe_urls.py b/tools/perf/page_sets/profile_safe_urls.py
index d64fa207d3f39d51666262ca433b1a5d2efe33bc..0e72cd3a601585092ec26ed1ee5d8a6a9a7d1584 100644
--- a/tools/perf/page_sets/profile_safe_urls.py
+++ b/tools/perf/page_sets/profile_safe_urls.py
@@ -11,6 +11,9 @@ class ProfileSafeUrlPage(page_module.Page):
def __init__(self, url, page_set):
super(ProfileSafeUrlPage, self).__init__(
url=url,
+ # Make sure story name is not too long and has type 'str' instead of
+ # 'unicode'.
+ name=str(url[:140]),
page_set = page_set,
shared_page_state_class=shared_page_state.SharedDesktopPageState,
credentials_path = 'data/credentials.json')
« no previous file with comments | « no previous file | tools/perf/page_sets/top_desktop_sites_2012Q3.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698