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

Unified Diff: net/log/bounded_file_net_log_observer.cc

Issue 2264993002: Use base::SizeTToString instead of std::to_string (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/log/bounded_file_net_log_observer.cc
diff --git a/net/log/bounded_file_net_log_observer.cc b/net/log/bounded_file_net_log_observer.cc
index 9098caf1573f5b73fabd4aa85b72cf0aaa623a01..0f1eafdf58a7dda73fb50dd8b8ac8b4ff2098a5a 100644
--- a/net/log/bounded_file_net_log_observer.cc
+++ b/net/log/bounded_file_net_log_observer.cc
@@ -13,6 +13,7 @@
#include "base/files/file_util.h"
#include "base/json/json_writer.h"
#include "base/logging.h"
+#include "base/strings/string_number_conversions.h"
#include "base/synchronization/lock.h"
#include "base/threading/thread.h"
#include "base/values.h"
@@ -354,8 +355,8 @@ void BoundedFileNetLogObserver::FileWriter::IncrementCurrentFile() {
current_file_idx_ %= total_num_files_;
event_files_[current_file_idx_].reset();
event_files_[current_file_idx_] = base::ScopedFILE(base::OpenFile(
- directory_.AppendASCII("event_file_" + std::to_string(current_file_idx_) +
- ".json"),
+ directory_.AppendASCII("event_file_" +
+ base::SizeTToString(current_file_idx_) + ".json"),
"w"));
}
@@ -394,9 +395,9 @@ void BoundedFileNetLogObserver::FileWriter::DeleteAllFiles() {
base::DeleteFile(directory_.AppendASCII("constants.json"), false);
base::DeleteFile(directory_.AppendASCII("end_netlog.json"), false);
for (size_t i = 0; i < total_num_files_; i++) {
- base::DeleteFile(
- directory_.AppendASCII("event_file_" + std::to_string(i) + ".json"),
- false);
+ base::DeleteFile(directory_.AppendASCII("event_file_" +
+ base::SizeTToString(i) + ".json"),
+ false);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698