Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 from profile_creators import profile_generator | |
| 6 from profile_creators import extension_profile_extender | |
| 7 from telemetry.page import shared_page_state | |
| 8 | |
| 9 | |
| 10 class ExtensionProfileSharedState(shared_page_state.SharedPageState): | |
| 11 def __init__(self, test, finder_options, story_set): | |
| 12 super(ExtensionProfileSharedState, self).__init__( | |
| 13 test, finder_options, story_set) | |
| 14 generator = profile_generator.ProfileGenerator( | |
| 15 extension_profile_extender.ExtensionProfileExtender, | |
| 16 "extension_profile") | |
| 17 out_dir = generator.Run(finder_options) | |
|
erikchen
2015/07/14 23:36:14
Does this directory end up leaking? Does it magica
sydli
2015/07/15 22:56:23
Suppose it's "magically cached" since python's tem
| |
| 18 print out_dir | |
|
erikchen
2015/07/14 23:36:14
Did you mean to use a log statement here?
sydli
2015/07/15 22:56:23
Yeah; although I realize it's redundant since gene
| |
| 19 if out_dir: | |
| 20 finder_options.browser_options.profile_dir = out_dir | |
| 21 else: | |
| 22 finder_options.browser_options.dont_override_profile = True | |
| 23 | |
| OLD | NEW |