fix: modernize-avoid-c-arrays (#44813)

use string_view for constants used in methods that take string_view args
This commit is contained in:
Charles Kerr 2024-11-25 09:49:58 -06:00 committed by GitHub
parent 024fee4e44
commit 3c941c7e8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 69 additions and 62 deletions

View file

@ -27,8 +27,8 @@
namespace {
constexpr char kDeviceNameKey[] = "productName";
constexpr char kDeviceIdKey[] = "deviceId";
constexpr std::string_view kDeviceNameKey = "productName";
constexpr std::string_view kDeviceIdKey = "deviceId";
constexpr int kUsbClassMassStorage = 0x08;
bool CanStorePersistentEntry(const device::mojom::UsbDeviceInfo& device_info) {