chrome/browser/first_run/first_run_win.cc
// Populates |path| with the path to |file| in the sentinel directory. This is
// the application directory for user-level installs, and the default user data
// dir for system-level installs. Returns false on error.
Populates |path| with the path to |file| in the sentinel directory. This is
the application directory for user-level installs, and the default user data
dir for system-level installs. Returns false on error.
Populates |path| with the path to |file| in the sentinel directory . This is the application directory for user - level installs and the default user data dir for system - level installs . Returns false on error .
bool GetSentinelFilePath(const wchar_t* file, FilePath* path) {
  FilePath exe_path;
  if (!PathService::Get(base::DIR_EXE, &exe_path))
    return false;
  if (InstallUtil::IsPerUserInstall(exe_path.value().c_str()))
    *path = exe_path;
  else if (!PathService::Get(chrome::DIR_USER_DATA, path))
    return false;
  *path = path->Append(file);
  return true;
}
bool GetSentinelFilePath ( const wchar_t * file , FilePath * path ) { FilePath exe_path ; if ( ! PathService :: Get ( base :: DIR_EXE , & exe_path ) ) return false ; if ( InstallUtil :: IsPerUserInstall ( exe_path . value ( ) . c_str ( ) ) ) * path = exe_path ; else if ( ! PathService :: Get ( chrome :: DIR_USER_DATA , path ) ) return false ; * path = path -> Append ( file ) ; return true ; }
Populates |path| with the path to |file| in the sentinel directory.
Populates |path| with the path to |file| in the sentinel directory .