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

Unified Diff: chrome/browser/download/download_path_reservation_tracker_unittest.cc

Issue 12767006: [Cleanup] Remove StringPrintf from global namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, once more Created 7 years, 9 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_path_reservation_tracker_unittest.cc
diff --git a/chrome/browser/download/download_path_reservation_tracker_unittest.cc b/chrome/browser/download/download_path_reservation_tracker_unittest.cc
index 60229318ead5257c4503e754887627818f3b1f39..4209317254cf42450a2387183ec8d1e1103bb149 100644
--- a/chrome/browser/download/download_path_reservation_tracker_unittest.cc
+++ b/chrome/browser/download/download_path_reservation_tracker_unittest.cc
@@ -340,10 +340,12 @@ TEST_F(DownloadPathReservationTrackerTest, UnresolvedConflicts) {
base::FilePath reserved_path;
base::FilePath expected_path;
bool verified = false;
- if (i > 0)
- expected_path = path.InsertBeforeExtensionASCII(StringPrintf(" (%d)", i));
- else
+ if (i > 0) {
+ expected_path =
+ path.InsertBeforeExtensionASCII(base::StringPrintf(" (%d)", i));
+ } else {
expected_path = path;
+ }
items[i].reset(CreateDownloadItem(i));
EXPECT_FALSE(IsPathInUse(expected_path));
CallGetReservedPath(*items[i], path, true, &reserved_path, &verified);

Powered by Google App Engine
This is Rietveld 408576698