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

Unified Diff: tools/perf/profile_creators/profile_extender.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
Index: tools/perf/profile_creators/profile_extender.py
diff --git a/tools/perf/profile_creators/profile_extender.py b/tools/perf/profile_creators/profile_extender.py
index 4b5ef021fbf671f31d2e641f2155801c1a2284de..f1782af1454668d0de8ec355d86e3c1240841810 100644
--- a/tools/perf/profile_creators/profile_extender.py
+++ b/tools/perf/profile_creators/profile_extender.py
@@ -61,7 +61,9 @@ class ProfileExtender(object):
@property
def profile_path(self):
"""The path of the profile that the browser will use while it's running."""
- return self.finder_options.output_profile_path
+ # TODO(eakuefner): Remove this after crrev.com/1874473006 rolls in.
+ return getattr(self.finder_options, 'output_profile_path',
+ self.finder_options.browser_options.output_profile_path)
@property
def browser(self):
« no previous file with comments | « tools/perf/profile_creators/extension_profile_extender_unittest.py ('k') | tools/perf/profile_creators/profile_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698