| Index: chrome/browser/web_applications/web_app.cc
|
| ===================================================================
|
| --- chrome/browser/web_applications/web_app.cc (revision 119906)
|
| +++ chrome/browser/web_applications/web_app.cc (working copy)
|
| @@ -14,6 +14,7 @@
|
| #include "base/i18n/file_util_icu.h"
|
| #include "base/md5.h"
|
| #include "base/path_service.h"
|
| +#include "base/stringprintf.h"
|
| #include "base/string_util.h"
|
| #include "base/threading/thread.h"
|
| #include "base/utf_string_conversions.h"
|
| @@ -290,12 +291,14 @@
|
| FilePath shortcut_file = shortcut_paths[i].Append(file_name).
|
| ReplaceExtension(FILE_PATH_LITERAL(".lnk"));
|
|
|
| - int unique_number = DownloadFile::GetUniquePathNumber(shortcut_file);
|
| + int unique_number =
|
| + file_util::GetUniquePathNumber(shortcut_file, FILE_PATH_LITERAL(""));
|
| if (unique_number == -1) {
|
| success = false;
|
| continue;
|
| } else if (unique_number > 0) {
|
| - DownloadFile::AppendNumberToPath(&shortcut_file, unique_number);
|
| + shortcut_file = shortcut_file.InsertBeforeExtensionASCII(
|
| + StringPrintf(" (%d)", unique_number));
|
| }
|
|
|
| success &= file_util::CreateShortcutLink(chrome_exe.value().c_str(),
|
|
|