telemetry.core.profile_types
index
telemetry/core/profile_types.py

# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

 
Modules
       
telemetry.core.discover
os
telemetry.core.profile_creator

 
Functions
       
ClearProfieCreatorsForTests()
Clears the discovered profile creator objects.  Used for unit tests.
FindProfileCreators(profile_creators_dir, base_dir)
Discover all the ProfileCreator objects in |profile_creators_dir|.
GetProfileCreator(profile_type)
Returns the profile creator object corresponding to the |profile_type|
string.
GetProfileDir(profile_type)
Given a |profile_type| (as returned by GetProfileTypes()), return the
directory to use for that profile or None if the profile needs to be generated
or doesn't need a profile directory (e.g. using the browser default profile).
GetProfileTypes()
Returns a list of all command line options that can be specified for
profile type.

 
Data
        BASE_PROFILE_TYPES = ['clean', 'default']
PROFILE_CREATORS = {}
PROFILE_TYPE_MAPPING = {'power_user': 'chrome/test/data/extensions/profiles/extension_webrequest', 'typical_user': 'chrome/test/data/extensions/profiles/content_scripts1'}