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

Unified Diff: chrome/browser/extensions/webstore_installer.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/extensions/webstore_installer.cc
===================================================================
--- chrome/browser/extensions/webstore_installer.cc (revision 119906)
+++ chrome/browser/extensions/webstore_installer.cc (working copy)
@@ -102,9 +102,9 @@
FilePath file = directory.AppendASCII(id + "_" + random_number + ".crx");
- int uniquifier = DownloadFile::GetUniquePathNumber(file);
+ int uniquifier = file_util::GetUniquePathNumber(file, FILE_PATH_LITERAL(""));
if (uniquifier > 0)
- DownloadFile::AppendNumberToPath(&file, uniquifier);
+ file_util::AppendNumberToPath(&file, uniquifier);
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
base::Bind(callback, file));

Powered by Google App Engine
This is Rietveld 408576698