Replace libchrome NumberToString with std::format
Replaces NumberToString in <base/string/string_number_conversions.h>
with std::format().
This change is very mechanical, no change in program behavior.
Test: build
Bug: 360917504
Change-Id: Iad92c9d4f4426790d8c38943147dede6eb873cb1
diff --git a/common/prefs.cc b/common/prefs.cc
index 8a727ae..a65ce51 100644
--- a/common/prefs.cc
+++ b/common/prefs.cc
@@ -25,7 +25,6 @@
#include <base/files/file_enumerator.h>
#include <base/files/file_util.h>
#include <base/logging.h>
-#include <base/strings/string_number_conversions.h>
#include <base/strings/string_split.h>
#include <base/strings/string_util.h>
@@ -89,7 +88,7 @@
}
bool PrefsBase::SetInt64(std::string_view key, const int64_t value) {
- return SetString(key, base::NumberToString(value));
+ return SetString(key, std::format("{}", value));
}
bool PrefsBase::GetBoolean(std::string_view key, bool* value) const {