Convert base::StringPiece to std::string_view in //components/metrics
The changes of this CL are made using the following script.
Script: https://issues.chromium.org/issues/40506050#comment343
Bug: 40506050
Change-Id: I6647b678090ebc38994c9c4b605b0ca49f271d66
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5472089
Commit-Queue: Alexei Svitkine <[email protected]>
Reviewed-by: Alexei Svitkine <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1292636}
diff --git a/components/metrics/metrics_log_uploader.h b/components/metrics/metrics_log_uploader.h
index 9b75a70..6b07dde 100644
--- a/components/metrics/metrics_log_uploader.h
+++ b/components/metrics/metrics_log_uploader.h
@@ -6,9 +6,9 @@
#define COMPONENTS_METRICS_METRICS_LOG_UPLOADER_H_
#include <string>
+#include <string_view>
#include "base/functional/callback.h"
-#include "base/strings/string_piece.h"
#include "components/metrics/metrics_log.h"
namespace metrics {
@@ -29,7 +29,7 @@
// - a string specifying the reason why the log was forcibly discarded (or
// empty string if not).
using UploadCallback =
- base::RepeatingCallback<void(int, int, bool, bool, base::StringPiece)>;
+ base::RepeatingCallback<void(int, int, bool, bool, std::string_view)>;
// Possible service types. This should correspond to a type from
// DataUseUserData.