Update base::FilePath::StringPieceType usage outside of //base
Replace StringPieceType with StringViewType, since base::StringPiece has
been replaced by std::string_view.
Change-Id: I22826fb9df1a71d4ec1fadecaef969db52971d3b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6235785
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Auto-Submit: Lei Zhang <thestig@chromium.org>
Owners-Override: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1416425}
NOKEYCHECK=True
GitOrigin-RevId: a8d5beb257203758bb904316344d220f19a20266
diff --git a/google/zip_internal.cc b/google/zip_internal.cc
index e6b5a4f..f33da59 100644
--- a/google/zip_internal.cc
+++ b/google/zip_internal.cc
@@ -397,14 +397,14 @@
// Skip the leading dot.
- base::FilePath::StringPieceType ext_without_dot = ext;
+ base::FilePath::StringViewType ext_without_dot = ext;
DCHECK_EQ(ext_without_dot.front(), FILE_PATH_LITERAL('.'));
ext_without_dot.remove_prefix(1);
// Well known filename extensions of files that a likely to be already
// compressed. The extensions are in lower case without the leading dot.
static constexpr auto kExts =
- base::MakeFixedFlatSet<base::FilePath::StringPieceType>({
+ base::MakeFixedFlatSet<base::FilePath::StringViewType>({
FILE_PATH_LITERAL("3g2"), //
FILE_PATH_LITERAL("3gp"), //
FILE_PATH_LITERAL("7z"), //