fix: modernize-avoid-c-arrays (#44834)
use string_view for constants used in methods that take string_view args Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
d8a7c57506
commit
5a0e1ccf73
11 changed files with 69 additions and 62 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <utility>
|
||||
|
||||
#include "base/memory/ref_counted_memory.h"
|
||||
|
@ -97,7 +98,7 @@ void ThemeDataSource::StartDataRequest(
|
|||
|
||||
// kColorsCssPath should stay consistent with COLORS_CSS_SELECTOR in
|
||||
// colors_css_updater.js.
|
||||
constexpr char kColorsCssPath[] = "colors.css";
|
||||
constexpr std::string_view kColorsCssPath = "colors.css";
|
||||
if (parsed_path == kColorsCssPath) {
|
||||
SendColorsCss(url, wc_getter, std::move(callback));
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue