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

Unified Diff: tools/perf/profile_creators/extension_profile_extender_unittest.py

Issue 1881573002: [Perf] Guard against impending output_profile_path option move. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/profile_creators/profile_extender.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/profile_creators/extension_profile_extender_unittest.py
diff --git a/tools/perf/profile_creators/extension_profile_extender_unittest.py b/tools/perf/profile_creators/extension_profile_extender_unittest.py
index 604987285bb6dae95eb1a134875ee466f19e44a5..6f5992dedcc7cb4a5ed150bae60f76bbe89f6854 100644
--- a/tools/perf/profile_creators/extension_profile_extender_unittest.py
+++ b/tools/perf/profile_creators/extension_profile_extender_unittest.py
@@ -24,7 +24,12 @@ class ExtensionProfileExtenderUnitTest(page_test_test_case.PageTestTestCase):
files_in_crx_dir = 0
try:
options = options_for_unittests.GetCopy()
- options.output_profile_path = tmp_dir
+ # TODO(eakuefner): Remove this after crrev.com/1874473006 rolls in.
+ try:
+ getattr(options, 'output_profile_path')
+ options.output_profile_path = tmp_dir
+ except AttributeError:
+ options.browser_options.output_profile_path = tmp_dir
extender = extension_profile_extender.ExtensionProfileExtender(options)
extender.Run()
« no previous file with comments | « no previous file | tools/perf/profile_creators/profile_extender.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698