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

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: Re-run on ToT, revert third_party changes and fix vexing parses. 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
Index: base/file_util_posix.cc
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc
index fa2c1ffe35456485225b0449459334565e14dc7a..1512c0f04795a8bd70ed4763e9a46be765f0b385 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, FILE_PATH_LITERAL(std::string()));
if (uniquifier < 0)
break;
base::FilePath test_path = (uniquifier == 0) ? path :

Powered by Google App Engine
This is Rietveld 408576698