chrome/browser/profiles/profile_shortcut_manager_win.cc
// Returns the long form of |path|, which will expand any shortened components
// like "foo~2" to their full names.
Returns the long form of |path|, which will expand any shortened components
like "foo~2" to their full names.
Returns the long form of |path| which will expand any shortened components like " foo~2 " to their full names .
FilePath ConvertToLongPath(const FilePath& path) {
  const size_t length = GetLongPathName(path.value().c_str(), NULL, 0);
  if (length != 0 && length != path.value().length()) {
    std::vector<wchar_t> long_path(length);
    if (GetLongPathName(path.value().c_str(), &long_path[0], length) != 0)
      return FilePath(&long_path[0]);
  }
  return path;
}
FilePath ConvertToLongPath ( const FilePath & path ) { const size_t length = GetLongPathName ( path . value ( ) . c_str ( ) , NULL , 0 ) ; if ( length != 0 && length != path . value ( ) . length ( ) ) { std :: vector < wchar_t > long_path ( length ) ; if ( GetLongPathName ( path . value ( ) . c_str ( ) , & long_path [ 0 ] , length ) != 0 ) return FilePath ( & long_path [ 0 ] ) ; } return path ; }
Returns the long form of |path|, which will expand any shortened components
like "foo~2" to their full names.
Returns the long form of |path| which will expand any shortened components like " foo~2 " to their full names .