| OLD | NEW |
| (Empty) |
| 1 # Copyright 2013 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 class ProfileCreator(object): | |
| 6 """Abstract base class for an object that constructs a Chrome profile.""" | |
| 7 | |
| 8 def Run(self, options): | |
| 9 """Creates the profile. | |
| 10 | |
| 11 |options| is an instance of BrowserFinderOptions. When subclass | |
| 12 implementations of this method inevitably attempt to find and launch a | |
| 13 browser, they should pass |options| to the relevant methods. | |
| 14 | |
| 15 Several properties of |options| might require direct manipulation by | |
| 16 subclasses. These are: | |
| 17 |options.output_profile_path|: The path at which the profile should be | |
| 18 created. | |
| 19 |options.browser_options.profile_dir|: If this property is None, then a | |
| 20 new profile is created. Otherwise, the existing profile is appended on | |
| 21 to. | |
| 22 """ | |
| 23 raise NotImplementedError() | |
| OLD | NEW |