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

Unified Diff: base/file_util_posix.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 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 | « base/debug/trace_event_unittest.cc ('k') | base/file_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util_posix.cc
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc
index fa2c1ffe35456485225b0449459334565e14dc7a..8bf164ace5c4a175907d416672e0507362808e6c 100644
--- a/base/file_util_posix.cc
+++ b/base/file_util_posix.cc
@@ -541,7 +541,8 @@ bool CreateDirectory(const FilePath& full_path) {
base::FilePath MakeUniqueDirectory(const base::FilePath& path) {
const int kMaxAttempts = 20;
for (int attempts = 0; attempts < kMaxAttempts; attempts++) {
- int uniquifier = GetUniquePathNumber(path, FILE_PATH_LITERAL(""));
+ int uniquifier =
+ GetUniquePathNumber(path, base::FilePath::StringType());
if (uniquifier < 0)
break;
base::FilePath test_path = (uniquifier == 0) ? path :
« no previous file with comments | « base/debug/trace_event_unittest.cc ('k') | base/file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698