tools/lldb/lldb_chrome_symbols.py
def _get_channel(outer_bundle, version):
    """Looks up the Chrome release channel by reading the Info.plist key. The
    target's Chrome `version` will be checked against the `outer_bundle`'s."""
    info_plist = os.path.join(outer_bundle, 'Contents', 'Info.plist')
    # Reading the Info.plist may fail if this is a core or minidump, but
    # there is no way to test in the lldb API if the target is one.
    try:
        with open(info_plist, 'rb') as f:
            plist = plistlib.load(f)
            if plist['KSVersion'] != version:
                # The on-disk bundle version does not match the target version,
                # so guess the channel.
                return None
            kschannel = plist['KSChannelID']

        if kschannel == '':
            return 'stable'

        channels = ('extended', 'stable', 'beta', 'dev', 'canary')
        for channel in channels:
            if channel in kschannel:
                return channel
    except:
        pass
    return None
Looks up the Chrome release channel by reading the Info.plist key. The
    target's Chrome `version` will be checked against the `outer_bundle`'s.
Looks up the Chrome release channel by reading the Info.plist key. The
target's Chrome `version` will be checked against the `outer_bundle`'s.
Looks up the Chrome release channel by reading the Info . plist key . The target ' s Chrome ` version ` will be checked against the ` outer_bundle ` ' s .
def _get_channel(outer_bundle, version):
    info_plist = os.path.join(outer_bundle, 'Contents', 'Info.plist')
    try:
        with open(info_plist, 'rb') as f:
            plist = plistlib.load(f)
            if plist['KSVersion'] != version:
                return None
            kschannel = plist['KSChannelID']
        if kschannel == '':
            return 'stable'
        channels = ('extended', 'stable', 'beta', 'dev', 'canary')
        for channel in channels:
            if channel in kschannel:
                return channel
    except:
        pass
    return None
def _get_channel ( outer_bundle , version ) : info_plist = os . path . join ( outer_bundle , 'Contents' , 'Info.plist' ) try : with open ( info_plist , 'rb' ) as f : plist = plistlib . load ( f ) if plist [ 'KSVersion' ] != version : return None kschannel = plist [ 'KSChannelID' ] if kschannel == '' : return 'stable' channels = ( 'extended' , 'stable' , 'beta' , 'dev' , 'canary' ) for channel in channels : if channel in kschannel : return channel except : pass return None
Looks up the Chrome release channel by reading the Info.plist key.
Looks up the Chrome release channel by reading the Info . plist key .
"""Looks up the Chrome release channel by reading the Info.plist key. The
    target's Chrome `version` will be checked against the `outer_bundle`'s.""" # Reading the Info.plist may fail if this is a core or minidump, but # there is no way to test in the lldb API if the target is one. # The on-disk bundle version does not match the target version, # so guess the channel.
outer_bundle
version