
import os

PROFILE_TYPE_MAPPING = {
  'typical_user': 'chrome/test/data/extensions/profiles/content_scripts1',
  'power_user': 'chrome/test/data/extensions/profiles/content_scripts10',
}
PROFILE_TYPES = PROFILE_TYPE_MAPPING.keys()

def GetProfileDir(profile_type):
  path = os.path.abspath(os.path.join(os.path.dirname(__file__),
      '..', '..', '..', '..', *PROFILE_TYPE_MAPPING[profile_type].split('/')))
  assert os.path.exists(path)
  return path


import os

PROFILE_TYPE_MAPPING = {
  'typical_user': 'chrome/test/data/extensions/profiles/content_scripts1',
  'power_user': 'chrome/test/data/extensions/profiles/extension_webrequest',
}
PROFILE_TYPES = PROFILE_TYPE_MAPPING.keys()

def GetProfileDir(profile_type):
  path = os.path.abspath(os.path.join(os.path.dirname(__file__),
      '..', '..', '..', '..', *PROFILE_TYPE_MAPPING[profile_type].split('/')))
  assert os.path.exists(path)
  return path

Use correct profile for power_user.
[Telemetry] Use correct profile for power_user.

TEST=None
BUG=None
NOTRY=True


Review URL: https://chromiumcodereview.appspot.com/12775015

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@188294 0039d316-1c4b-4281-b951-d872f2087c98

  
  import os
  
  PROFILE_TYPE_MAPPING = {
    'typical_user': 'chrome/test/data/extensions/profiles/content_scripts1',
-   'power_user': 'chrome/test/data/extensions/profiles/content_scripts10',
+   'power_user': 'chrome/test/data/extensions/profiles/extension_webrequest',
  }
  PROFILE_TYPES = PROFILE_TYPE_MAPPING.keys()
  
  def GetProfileDir(profile_type):
    path = os.path.abspath(os.path.join(os.path.dirname(__file__),
        '..', '..', '..', '..', *PROFILE_TYPE_MAPPING[profile_type].split('/')))
    assert os.path.exists(path)
    return path
  
Use correct profile for power_user.
## Code Before:

import os

PROFILE_TYPE_MAPPING = {
  'typical_user': 'chrome/test/data/extensions/profiles/content_scripts1',
  'power_user': 'chrome/test/data/extensions/profiles/content_scripts10',
}
PROFILE_TYPES = PROFILE_TYPE_MAPPING.keys()

def GetProfileDir(profile_type):
  path = os.path.abspath(os.path.join(os.path.dirname(__file__),
      '..', '..', '..', '..', *PROFILE_TYPE_MAPPING[profile_type].split('/')))
  assert os.path.exists(path)
  return path

## Instruction:
Use correct profile for power_user.
## Code After:

import os

PROFILE_TYPE_MAPPING = {
  'typical_user': 'chrome/test/data/extensions/profiles/content_scripts1',
  'power_user': 'chrome/test/data/extensions/profiles/extension_webrequest',
}
PROFILE_TYPES = PROFILE_TYPE_MAPPING.keys()

def GetProfileDir(profile_type):
  path = os.path.abspath(os.path.join(os.path.dirname(__file__),
      '..', '..', '..', '..', *PROFILE_TYPE_MAPPING[profile_type].split('/')))
  assert os.path.exists(path)
  return path
