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

Unified Diff: chrome/browser/download/chrome_download_manager_delegate.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
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/download/download_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/chrome_download_manager_delegate.cc
===================================================================
--- chrome/browser/download/chrome_download_manager_delegate.cc (revision 119906)
+++ chrome/browser/download/chrome_download_manager_delegate.cc (working copy)
@@ -32,7 +32,6 @@
#include "chrome/common/chrome_paths.h"
#include "chrome/common/extensions/user_script.h"
#include "chrome/common/pref_names.h"
-#include "content/browser/download/download_file.h"
#include "content/browser/download/download_status_updater.h"
#include "content/public/browser/download_item.h"
#include "content/public/browser/download_manager.h"
@@ -42,7 +41,6 @@
#include "ui/base/l10n/l10n_util.h"
using content::BrowserThread;
-using content::DownloadFile;
using content::DownloadId;
using content::DownloadItem;
using content::DownloadManager;
@@ -526,8 +524,8 @@
}
// We know the final path, build it if necessary.
if (state.path_uniquifier > 0) {
- DownloadFile::AppendNumberToPath(&(state.suggested_path),
- state.path_uniquifier);
+ state.suggested_path = state.suggested_path.InsertBeforeExtensionASCII(
+ StringPrintf(" (%d)", state.path_uniquifier));
// Setting path_uniquifier to 0 to make sure we don't try to unique it
// later on.
state.path_uniquifier = 0;
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/download/download_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698