From 460610aff98670297d22846a6422d2b9d36efff5 Mon Sep 17 00:00:00 2001 From: "Jorge E. Moreira" Date: Mon, 6 Apr 2026 13:05:44 -0700 Subject: [PATCH] Use absl::StrSplit instead of android::base::Split --- base/cvd/cuttlefish/host/libs/config/camera.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base/cvd/cuttlefish/host/libs/config/camera.cpp b/base/cvd/cuttlefish/host/libs/config/camera.cpp index 4f241826114..5669bb28cdc 100644 --- a/base/cvd/cuttlefish/host/libs/config/camera.cpp +++ b/base/cvd/cuttlefish/host/libs/config/camera.cpp @@ -21,7 +21,7 @@ #include #include -#include +#include "absl/strings/str_split.h" #include "cuttlefish/common/libs/utils/flag_parser.h" #include "cuttlefish/host/libs/config/cuttlefish_config.h" @@ -36,9 +36,9 @@ Result> ParseCameraConfig( const std::string& flag) { std::unordered_map props; if (!flag.empty()) { - const std::vector pairs = android::base::Split(flag, ","); + const std::vector pairs = absl::StrSplit(flag, ","); for (const std::string& pair : pairs) { - const std::vector keyvalue = android::base::Split(pair, "="); + const std::vector keyvalue = absl::StrSplit(pair, "="); CF_EXPECT_EQ(keyvalue.size(), 2, "Invalid camera flag key-value: \"" << flag << "\""); const std::string& prop_key = keyvalue[0];