electron/shell
Charles Kerr b3c2e83243
refactor: prefer inline constexpr string_view for string constants (#44405)
* refactor: BaseWindow::OnExecuteAppCommand() now takes a std::string_view

* refactor: NativeWindow::NotifyWindowExecuteAppCommand() takes a std::string_view

* refactor: AppCommandToString() returns a std::string_view, is now constexpr

* refactor: make kBrowserBackward, kBrowserForward inline constexpr std::string_view

Xref: https://abseil.io/tips/140

https://groups.google.com/a/chromium.org/g/chromium-dev/c/jROTxMo_m2Q/m/HgciN2KsAgAJ

* refactor: use inline constexpr string_view for kDevice*Key constants

Xref: https://abseil.io/tips/140

https://groups.google.com/a/chromium.org/g/chromium-dev/c/jROTxMo_m2Q/m/HgciN2KsAgAJ

* refactor: IsEnvSet now takes a base::cstring_view

* refactor: use inline constexpr cstring_view for kRunAsNode

* refactor: use inline constexpr string_view for kPDF*PluginName

* refactor: use base::FilePath::FromASCII() since "internal-pdf-viewer" is ascii

* chore: remove unused shell/common/electron_constants.cc

* fixup! refactor: IsEnvSet now takes a base::cstring_view
2024-10-29 10:30:12 +01:00
..
app refactor: prefer inline constexpr string_view for string constants (#44405) 2024-10-29 10:30:12 +01:00
browser refactor: prefer inline constexpr string_view for string constants (#44405) 2024-10-29 10:30:12 +01:00
common refactor: prefer inline constexpr string_view for string constants (#44405) 2024-10-29 10:30:12 +01:00
renderer perf: prefer NewFromUtf8Literal() over NewFromUtf8() for string literals (#44412) 2024-10-28 14:12:32 +01:00
services/node fix: -Wunsafe-buffer-usage warning in ChunkedDataPipeReadableStream (#44211) 2024-10-14 10:46:24 +02:00
utility chore: remove unused base/ includes (#43688) 2024-09-12 16:05:37 +02:00