0

Replace base::StringPiece in //ipc with std::string_view

Bug: 691162
Change-Id: I0aa1aabb7b3505c8483ddbbb053fd0fe06855f73
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5054662
Commit-Queue: Hyowon Kim <hyowon@igalia.com>
Reviewed-by: Ken Rockot <rockot@google.com>
Cr-Commit-Position: refs/heads/main@{#1231799}
This commit is contained in:
Hyowon Kim
2023-12-01 08:16:20 +00:00
committed by Chromium LUCI CQ
parent a15130ad67
commit 6f3d96c1e6
2 changed files with 2 additions and 2 deletions

@ -67,7 +67,7 @@ base::TimeDelta GetFrameTime(size_t frames_per_second) {
class PerfCpuLogger {
public:
explicit PerfCpuLogger(base::StringPiece test_name)
explicit PerfCpuLogger(std::string_view test_name)
: test_name_(test_name),
process_metrics_(base::ProcessMetrics::CreateCurrentProcessMetrics()) {
// Query the CPU usage once to start the recording interval.

@ -449,7 +449,7 @@ void ParamTraits<std::u16string>::Log(const param_type& p, std::string* l) {
bool ParamTraits<std::wstring>::Read(const base::Pickle* m,
base::PickleIterator* iter,
param_type* r) {
base::StringPiece16 piece16;
std::u16string_view piece16;
if (!iter->ReadStringPiece16(&piece16))
return false;