parameters: (profile_type)
return_statement: return path
docstring: Given a |profile_type| (as returned by GetProfileTypes()), return the
    directory to use for that profile or None if the profile doesn't need a
    profile directory (e.g. using the browser default profile).
docstring_summary: Given a |profile_type| (as returned by GetProfileTypes()), return the
    directory to use for that profile or None if the profile doesn't need a
    profile directory (e.g. using the browser default profile).
docstring_tokens: Given a |profile_type| ( as returned by GetProfileTypes () ) return the directory to use for that profile or None if the profile doesn t need a profile directory ( e . g . using the browser default profile ) .
function: def GetProfileDir(profile_type):
    """Given a |profile_type| (as returned by GetProfileTypes()), return the
    directory to use for that profile or None if the profile doesn't need a
    profile directory (e.g. using the browser default profile).
    """
    if profile_type in BASE_PROFILE_TYPES:
      return None
  
    path = os.path.join(
        util.GetTelemetryDir(), 'telemetry', 'internal', 'browser_profiles')
  
    assert os.path.exists(path)
    return path
function_tokens: def GetProfileDir ( profile_type ) : if profile_type in BASE_PROFILE_TYPES : return None path = os . path . join ( util . GetTelemetryDir ( ) , 'telemetry' , 'internal' , 'browser_profiles' ) assert os . path . exists ( path ) return path