Revert to using fml::StringView instead of std::string_view (#9903)
diff --git a/shell/common/switches.cc b/shell/common/switches.cc
index 0000fed..0ab6815 100644
--- a/shell/common/switches.cc
+++ b/shell/common/switches.cc
@@ -233,7 +233,7 @@
command_line.GetOptionValue(FlagForSwitch(Switch::FlutterAssetsDir),
&settings.assets_path);
- std::vector<std::string_view> aot_shared_library_name =
+ std::vector<fml::StringView> aot_shared_library_name =
command_line.GetOptionValues(FlagForSwitch(Switch::AotSharedLibraryName));
std::string snapshot_asset_path;
@@ -258,8 +258,8 @@
&isolate_snapshot_instr_filename);
if (aot_shared_library_name.size() > 0) {
- for (std::string_view name : aot_shared_library_name) {
- settings.application_library_path.emplace_back(name);
+ for (fml::StringView name : aot_shared_library_name) {
+ settings.application_library_path.emplace_back(name.ToString());
}
} else if (snapshot_asset_path.size() > 0) {
settings.vm_snapshot_data_path =