Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(942)

Unified Diff: chrome/browser/web_applications/web_app.cc

Issue 9316004: Move common file path related methods between chrome & content to file_util. I reduced the 4 meth... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)
@@ -290,12 +290,13 @@
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);
+ file_util::AppendNumberToPath(&shortcut_file, unique_number);
}
success &= file_util::CreateShortcutLink(chrome_exe.value().c_str(),

Powered by Google App Engine
This is Rietveld 408576698