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:
parent
c4abaec56a
commit
f2481ed44f
4 changed files with 17 additions and 4 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue