fix: modernize-avoid-c-arrays (#44813)
use string_view for constants used in methods that take string_view args
This commit is contained in:
parent
024fee4e44
commit
3c941c7e8f
11 changed files with 69 additions and 62 deletions
|
@ -90,10 +90,10 @@ using blink::mojom::PermissionStatus;
|
|||
// }
|
||||
const char kDefaultLastPickedDirectoryKey[] = "default-id";
|
||||
const char kCustomLastPickedDirectoryKey[] = "custom-id";
|
||||
const char kPathKey[] = "path";
|
||||
const char kPathTypeKey[] = "path-type";
|
||||
const char kDisplayNameKey[] = "display-name";
|
||||
const char kTimestampKey[] = "timestamp";
|
||||
constexpr std::string_view kPathKey = "path";
|
||||
constexpr std::string_view kPathTypeKey = "path-type";
|
||||
constexpr std::string_view kDisplayNameKey = "display-name";
|
||||
constexpr std::string_view kTimestampKey = "timestamp";
|
||||
|
||||
constexpr base::TimeDelta kPermissionRevocationTimeout = base::Seconds(5);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue