chrome/test/mini_installer/chrome_helper.py
def GetChromeProcesses(chrome_path):
        """Returns a dict of all |chrome_path| processes indexed by pid."""
        chrome_processes = dict()
        for process in psutil.process_iter():
            try:
                if get_process_exe(process) == chrome_path:
                    chrome_processes[process.pid] = process
                    LOGGER.info('Found chrome process %s' %
                                get_process_exe(process))
                elif get_process_name(process) == os.path.basename(
                        chrome_path):
                    raise Exception('Found other chrome process %s' %
                                    get_process_exe(process))
            except psutil.Error:
                pass
        return chrome_processes
Returns a dict of all |chrome_path| processes indexed by pid.
Returns a dict of all |chrome_path| processes indexed by pid.
Returns a dict of all |chrome_path| processes indexed by pid .
def GetChromeProcesses(chrome_path):
        chrome_processes = dict()
        for process in psutil.process_iter():
            try:
                if get_process_exe(process) == chrome_path:
                    chrome_processes[process.pid] = process
                    LOGGER.info('Found chrome process %s' %
                                get_process_exe(process))
                elif get_process_name(process) == os.path.basename(
                        chrome_path):
                    raise Exception('Found other chrome process %s' %
                                    get_process_exe(process))
            except psutil.Error:
                pass
        return chrome_processes
def GetChromeProcesses ( chrome_path ) : chrome_processes = dict ( ) for process in psutil . process_iter ( ) : try : if get_process_exe ( process ) == chrome_path : chrome_processes [ process . pid ] = process LOGGER . info ( 'Found chrome process %s' % get_process_exe ( process ) ) elif get_process_name ( process ) == os . path . basename ( chrome_path ) : raise Exception ( 'Found other chrome process %s' % get_process_exe ( process ) ) except psutil . Error : pass return chrome_processes
Returns a dict of all |chrome_path| processes indexed by pid.
Returns a dict of all |chrome_path| processes indexed by pid .
"""Returns a dict of all |chrome_path| processes indexed by pid."""
chrome_path