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

Unified Diff: chrome/browser/download/download_util.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: remove includes 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/download/download_util.cc
===================================================================
--- chrome/browser/download/download_util.cc (revision 119906)
+++ chrome/browser/download/download_util.cc (working copy)
@@ -33,7 +33,6 @@
#include "chrome/common/chrome_paths.h"
#include "chrome/common/time_format.h"
#include "content/browser/download/download_create_info.h"
-#include "content/browser/download/download_file.h"
#include "content/browser/download/download_types.h"
#include "content/browser/renderer_host/render_view_host.h"
#include "content/public/browser/browser_thread.h"
@@ -593,13 +592,12 @@
#endif
int GetUniquePathNumberWithCrDownload(const FilePath& path) {
- return DownloadFile::GetUniquePathNumberWithSuffix(
+ return file_util::GetUniquePathNumber(
path, FILE_PATH_LITERAL(".crdownload"));
}
FilePath GetCrDownloadPath(const FilePath& suggested_path) {
- return DownloadFile::AppendSuffixToPath(
- suggested_path, FILE_PATH_LITERAL(".crdownload"));
+ return FilePath(suggested_path.value() + FILE_PATH_LITERAL(".crdownload"));
}
bool IsSavableURL(const GURL& url) {
« no previous file with comments | « chrome/browser/download/chrome_download_manager_delegate.cc ('k') | chrome/browser/extensions/webstore_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698