chrome/browser/profiles/profile_shortcut_manager_win.cc
// Renames an existing Chrome desktop profile shortcut. Must be called on the
// FILE thread.
Renames an existing Chrome desktop profile shortcut. Must be called on the
FILE thread.
Renames an existing Chrome desktop profile shortcut . Must be called on the FILE thread .
void RenameChromeDesktopShortcutForProfile(
    const string16& old_shortcut_file,
    const string16& new_shortcut_file) {
  DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
  FilePath shortcuts_directory;
  if (!GetDesktopShortcutsDirectory(&shortcuts_directory))
    return;
  FilePath old_shortcut_path = shortcuts_directory.Append(old_shortcut_file);
  if (!file_util::PathExists(old_shortcut_path))
    return;
  FilePath new_shortcut_path = shortcuts_directory.Append(new_shortcut_file);
  if (!file_util::Move(old_shortcut_path, new_shortcut_path))
    LOG(ERROR) << "Could not rename Windows profile desktop shortcut.";
}
void RenameChromeDesktopShortcutForProfile ( const string16 & old_shortcut_file , const string16 & new_shortcut_file ) { DCHECK ( BrowserThread :: CurrentlyOn ( BrowserThread :: FILE ) ) ; FilePath shortcuts_directory ; if ( ! GetDesktopShortcutsDirectory ( & shortcuts_directory ) ) return ; FilePath old_shortcut_path = shortcuts_directory . Append ( old_shortcut_file ) ; if ( ! file_util :: PathExists ( old_shortcut_path ) ) return ; FilePath new_shortcut_path = shortcuts_directory . Append ( new_shortcut_file ) ; if ( ! file_util :: Move ( old_shortcut_path , new_shortcut_path ) ) LOG ( ERROR ) << " " ; }
Renames an existing Chrome desktop profile shortcut.
Renames an existing Chrome desktop profile shortcut .
// If the shortcut does not exist, it may have been renamed by the user. In // that case, its name should not be changed.