chrome/browser/profiles/profile_shortcut_manager_win.cc
// Returns true if the file at |path| is a Chrome shortcut and returns its
// command line in output parameter |command_line|.
Returns true if the file at |path| is a Chrome shortcut and returns its
command line in output parameter |command_line|.
Returns true if the file at |path| is a Chrome shortcut and returns its command line in output parameter |command_line| .
bool IsChromeShortcut(const FilePath& path,
                      const FilePath& chrome_exe,
                      string16* command_line) {
  DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
  if (path.Extension() != installer::kLnkExt)
    return false;
  FilePath target_path;
  if (!base::win::ResolveShortcut(path, &target_path, command_line))
    return false;
  return ConvertToLongPath(target_path) == ConvertToLongPath(chrome_exe);
}
bool IsChromeShortcut ( const FilePath & path , const FilePath & chrome_exe , string16 * command_line ) { DCHECK ( BrowserThread :: CurrentlyOn ( BrowserThread :: FILE ) ) ; if ( path . Extension ( ) != installer :: kLnkExt ) return false ; FilePath target_path ; if ( ! base :: win :: ResolveShortcut ( path , & target_path , command_line ) ) return false ; return ConvertToLongPath ( target_path ) == ConvertToLongPath ( chrome_exe ) ; }
Returns true if the file at |path| is a Chrome shortcut and returns its
command line in output parameter |command_line|.
Returns true if the file at |path| is a Chrome shortcut and returns its command line in output parameter |command_line| .
// One of the paths may be in short (elided) form. Compare long paths to // ensure these are still properly matched.