tools/variations/bisect_variations.py
def _LocateBrowser(browser_type):
  """Locates browser executable path based on input browser type.

  Args:
      browser_type: A supported browser types on this platform.

  Returns:
      Browser executable path.
  """
  supported_browser_types = _GetSupportedBrowserTypes()
  if browser_type not in supported_browser_types:
    raise ValueError('Invalid browser type. Supported values are: %s.' %
                         ', '.join(supported_browser_types))
  if sys.platform.startswith('win'):
    return _LocateBrowser_Win(browser_type)
  elif sys.platform == 'darwin':
    return _LocateBrowser_Mac(browser_type)
  elif sys.platform.startswith('linux'):
    return _LocateBrowser_Linux(browser_type)
  else:
    raise NotImplementedError('Unsupported platform')
Locates browser executable path based on input browser type.

  Args:
      browser_type: A supported browser types on this platform.

  Returns:
      Browser executable path.
  
Locates browser executable path based on input browser type.
Locates browser executable path based on input browser type .
def _LocateBrowser(browser_type):
  supported_browser_types = _GetSupportedBrowserTypes()
  if browser_type not in supported_browser_types:
    raise ValueError('Invalid browser type. Supported values are: %s.' %
                         ', '.join(supported_browser_types))
  if sys.platform.startswith('win'):
    return _LocateBrowser_Win(browser_type)
  elif sys.platform == 'darwin':
    return _LocateBrowser_Mac(browser_type)
  elif sys.platform.startswith('linux'):
    return _LocateBrowser_Linux(browser_type)
  else:
    raise NotImplementedError('Unsupported platform')
def _LocateBrowser ( browser_type ) : supported_browser_types = _GetSupportedBrowserTypes ( ) if browser_type not in supported_browser_types : raise ValueError ( 'Invalid browser type. Supported values are: %s.' % ', ' . join ( supported_browser_types ) ) if sys . platform . startswith ( 'win' ) : return _LocateBrowser_Win ( browser_type ) elif sys . platform == 'darwin' : return _LocateBrowser_Mac ( browser_type ) elif sys . platform . startswith ( 'linux' ) : return _LocateBrowser_Linux ( browser_type ) else : raise NotImplementedError ( 'Unsupported platform' )
Locates browser executable path based on input browser type.
Locates browser executable path based on input browser type .
"""Locates browser executable path based on input browser type.

  Args:
      browser_type: A supported browser types on this platform.

  Returns:
      Browser executable path.
  """
Browser executable path.
Browser executable path .
browser_type
A supported browser types on this platform.
A supported browser types on this platform .