tools/vim/chromium.ycm_extra_conf.py
def GetDefaultSourceFile(chrome_root, filename):
  """Returns the default source file to use as an alternative to |filename|.

  Compile flags used to build the default source file is assumed to be a
  close-enough approximation for building |filename|.

  Args:
    chrome_root: (String) Absolute path to the root of Chromium checkout.
    filename: (String) Absolute path to the source file.

  Returns:
    (String) Absolute path to substitute source file.
  """
  blink_root = os.path.join(chrome_root, 'third_party', 'WebKit')
  if filename.startswith(blink_root):
    return os.path.join(blink_root, 'Source', 'core', 'CoreInitializer.cpp')
  else:
    if 'test.' in filename:
      return os.path.join(chrome_root, 'base', 'logging_unittest.cc')
    return os.path.join(chrome_root, 'base', 'logging.cc')
Returns the default source file to use as an alternative to |filename|.

  Compile flags used to build the default source file is assumed to be a
  close-enough approximation for building |filename|.

  Args:
    chrome_root: (String) Absolute path to the root of Chromium checkout.
    filename: (String) Absolute path to the source file.

  Returns:
    (String) Absolute path to substitute source file.
  
Returns the default source file to use as an alternative to |filename|.
Compile flags used to build the default source file is assumed to be a
close-enough approximation for building |filename|.
Returns the default source file to use as an alternative to |filename| . Compile flags used to build the default source file is assumed to be a close - enough approximation for building |filename| .
def GetDefaultSourceFile(chrome_root, filename):
  blink_root = os.path.join(chrome_root, 'third_party', 'WebKit')
  if filename.startswith(blink_root):
    return os.path.join(blink_root, 'Source', 'core', 'CoreInitializer.cpp')
  else:
    if 'test.' in filename:
      return os.path.join(chrome_root, 'base', 'logging_unittest.cc')
    return os.path.join(chrome_root, 'base', 'logging.cc')
def GetDefaultSourceFile ( chrome_root , filename ) : blink_root = os . path . join ( chrome_root , 'third_party' , 'WebKit' ) if filename . startswith ( blink_root ) : return os . path . join ( blink_root , 'Source' , 'core' , 'CoreInitializer.cpp' ) else : if 'test.' in filename : return os . path . join ( chrome_root , 'base' , 'logging_unittest.cc' ) return os . path . join ( chrome_root , 'base' , 'logging.cc' )
Returns the default source file to use as an alternative to |filename|.
Returns the default source file to use as an alternative to |filename| .
"""Returns the default source file to use as an alternative to |filename|.

  Compile flags used to build the default source file is assumed to be a
  close-enough approximation for building |filename|.

  Args:
    chrome_root: (String) Absolute path to the root of Chromium checkout.
    filename: (String) Absolute path to the source file.

  Returns:
    (String) Absolute path to substitute source file.
  """
(String) Absolute path to substitute source file.
( String ) Absolute path to substitute source file .
chrome_root
(String) Absolute path to the root of Chromium checkout.
( String ) Absolute path to the root of Chromium checkout .
filename
(String) Absolute path to the source file.
( String ) Absolute path to the source file .