refactor: move impl classes into unnamed namespaces (#42390)

* refactor: move ReplyChannel into an anonymous namespace

* refactor: move ChunkedDataPipeReadableStream into an anonymous namespace

* refactor: move linux helpers into an anonymous namespace

* refactor: move linux helpers into an anonymous namespace
This commit is contained in:
Charles Kerr 2024-06-10 17:00:20 -05:00 committed by GitHub
parent c4abaec56a
commit f2481ed44f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 17 additions and 4 deletions

View file

@ -18,6 +18,10 @@
#include "shell/common/thread_restrictions.h"
#endif
namespace electron {
namespace {
constexpr std::string_view kElectronOzonePlatformHint{
"ELECTRON_OZONE_PLATFORM_HINT"};
@ -55,10 +59,6 @@ bool HasWaylandDisplay(base::Environment* env) {
constexpr char kPlatformX11[] = "x11";
#endif
namespace electron {
namespace {
// Evaluates the environment and returns the effective platform name for the
// given |ozone_platform_hint|.
// For the "auto" value, returns "wayland" if the XDG session type is "wayland",