tools/mac/download_symbols.py
def download_chrome_symbols(version, channel, arch, dest_dir):
    """Downloads and extracts the official Google Chrome dSYM files to a
    subdirectory of `dest_dir`.

    Args:
        version: The version to download symbols for.
        channel: The release channel to download symbols for. If None, attempts
                 to guess the channel.
        arch: The CPU architecture to download symbols for.
        dest_dir: The location to download symbols to. The dSYMs will be
                  extracted to a subdirectory of this directory.

    Returns:
        The path to the directory containing the dSYMs, which will be a
        subdirectory of `dest_dir`.
    """
    if channel is None:
        channel = _identify_channel(version, arch)
        if channel:
            print('Using release channel {} for {}'.format(channel, version),
                  file=sys.stderr)
        else:
            print('Could not identify channel for Chrome version {}'.format(
                version),
                  file=sys.stderr)
            return None

    # The symbol storage uses "arm64" rather than "aarch64".
    if arch == 'aarch64':
        arch = 'arm64'

    extracted_dir = _download_and_extract(version, channel, arch, dest_dir)
    if not extracted_dir:
        print('Could not find dSYMs for Chrome {} {}'.format(version, arch),
              file=sys.stderr)
    return extracted_dir
Downloads and extracts the official Google Chrome dSYM files to a
    subdirectory of `dest_dir`.

    Args:
        version: The version to download symbols for.
        channel: The release channel to download symbols for. If None, attempts
                 to guess the channel.
        arch: The CPU architecture to download symbols for.
        dest_dir: The location to download symbols to. The dSYMs will be
                  extracted to a subdirectory of this directory.

    Returns:
        The path to the directory containing the dSYMs, which will be a
        subdirectory of `dest_dir`.
    
Downloads and extracts the official Google Chrome dSYM files to a
subdirectory of `dest_dir`.
Downloads and extracts the official Google Chrome dSYM files to a subdirectory of ` dest_dir ` .
def download_chrome_symbols(version, channel, arch, dest_dir):
    if channel is None:
        channel = _identify_channel(version, arch)
        if channel:
            print('Using release channel {} for {}'.format(channel, version),
                  file=sys.stderr)
        else:
            print('Could not identify channel for Chrome version {}'.format(
                version),
                  file=sys.stderr)
            return None
    if arch == 'aarch64':
        arch = 'arm64'
    extracted_dir = _download_and_extract(version, channel, arch, dest_dir)
    if not extracted_dir:
        print('Could not find dSYMs for Chrome {} {}'.format(version, arch),
              file=sys.stderr)
    return extracted_dir
def download_chrome_symbols ( version , channel , arch , dest_dir ) : if channel is None : channel = _identify_channel ( version , arch ) if channel : print ( 'Using release channel {} for {}' . format ( channel , version ) , file = sys . stderr ) else : print ( 'Could not identify channel for Chrome version {}' . format ( version ) , file = sys . stderr ) return None if arch == 'aarch64' : arch = 'arm64' extracted_dir = _download_and_extract ( version , channel , arch , dest_dir ) if not extracted_dir : print ( 'Could not find dSYMs for Chrome {} {}' . format ( version , arch ) , file = sys . stderr ) return extracted_dir
Downloads and extracts the official Google Chrome dSYM files to a
subdirectory of `dest_dir`.
Downloads and extracts the official Google Chrome dSYM files to a subdirectory of ` dest_dir ` .
"""Downloads and extracts the official Google Chrome dSYM files to a
    subdirectory of `dest_dir`.

    Args:
        version: The version to download symbols for.
        channel: The release channel to download symbols for. If None, attempts
                 to guess the channel.
        arch: The CPU architecture to download symbols for.
        dest_dir: The location to download symbols to. The dSYMs will be
                  extracted to a subdirectory of this directory.

    Returns:
        The path to the directory containing the dSYMs, which will be a
        subdirectory of `dest_dir`.
    """ # The symbol storage uses "arm64" rather than "aarch64".
The path to the directory containing the dSYMs, which will be a
subdirectory of `dest_dir`.
The path to the directory containing the dSYMs which will be a subdirectory of ` dest_dir ` .
version
The version to download symbols for.
The version to download symbols for .
channel
The release channel to download symbols for. If None, attempts
to guess the channel.
The release channel to download symbols for . If None attempts to guess the channel .
arch
The CPU architecture to download symbols for.
The CPU architecture to download symbols for .
dest_dir
The location to download symbols to. The dSYMs will be
extracted to a subdirectory of this directory.
The location to download symbols to . The dSYMs will be extracted to a subdirectory of this directory .