diff options
author | erikchen <erikchen@chromium.org> | 2015-11-02 18:37:03 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-03 02:37:49 +0000 |
commit | 1c79ff214194f616d6b784fb648c5f800470570d (patch) | |
tree | 6a5cdc4aac74ead20f388cd5f7fae2929d67762f /tools/perf/profile_creators | |
parent | 73808f97314cf0016ccb03bf942dc94b1b7a9a28 (diff) | |
download | chromium_src-1c79ff214194f616d6b784fb648c5f800470570d.zip chromium_src-1c79ff214194f616d6b784fb648c5f800470570d.tar.gz chromium_src-1c79ff214194f616d6b784fb648c5f800470570d.tar.bz2 |
ProfileExtender should not modify browser options or finder options.
BUG=547992
Review URL: https://codereview.chromium.org/1407983004
Cr-Commit-Position: refs/heads/master@{#357516}
Diffstat (limited to 'tools/perf/profile_creators')
-rw-r--r-- | tools/perf/profile_creators/profile_extender.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/profile_creators/profile_extender.py b/tools/perf/profile_creators/profile_extender.py index 936a1cb..292afa7 100644 --- a/tools/perf/profile_creators/profile_extender.py +++ b/tools/perf/profile_creators/profile_extender.py @@ -2,6 +2,8 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +import copy + from telemetry.core import platform from telemetry.util import wpr_modes from telemetry.internal.browser import browser_finder @@ -26,7 +28,7 @@ class ProfileExtender(object): then a new profile is created. Otherwise, the existing profile is appended on to. """ - self._finder_options = finder_options + self._finder_options = copy.deepcopy(finder_options) # Since profile extenders are not supported on remote platforms, # this should be the same as target platform. self._os_name = platform.GetHostPlatform().GetOSName() |