Commit 7973fa3c authored by Jacobo Aragunde Pérez's avatar Jacobo Aragunde Pérez Committed by Commit Bot

Replace some platform macros with USE_ZYGOTE_HANDLE

Wrap the definition of member named is_broker_ in
PpapiPluginSandboxedProcessLauncherDelegate class with
USE_ZYGOTE_HANDLE || OS_WIN, since it is used only from code blocks
enclosed by either of those conditions.

The existing conditions were probably a leftover from before
USE_ZYGOTE_HANDLE was introduced.

Related: https://chromium-review.googlesource.com/862298
Change-Id: I4a2814ace7f2b4280c0c1d69082e78fd626187ed
Reviewed-on: https://chromium-review.googlesource.com/1019246Reviewed-by: default avatarTom Sepez <tsepez@chromium.org>
Reviewed-by: default avatarJohn Abd-El-Malek <jam@chromium.org>
Commit-Queue: Antonio Gomes <tonikitoo@igalia.com>
Cr-Commit-Position: refs/heads/master@{#553574}
parent 8aa6d576
...@@ -58,8 +58,7 @@ class PpapiPluginSandboxedProcessLauncherDelegate ...@@ -58,8 +58,7 @@ class PpapiPluginSandboxedProcessLauncherDelegate
: public content::SandboxedProcessLauncherDelegate { : public content::SandboxedProcessLauncherDelegate {
public: public:
explicit PpapiPluginSandboxedProcessLauncherDelegate(bool is_broker) explicit PpapiPluginSandboxedProcessLauncherDelegate(bool is_broker)
#if (defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)) || \ #if BUILDFLAG(USE_ZYGOTE_HANDLE) || defined(OS_WIN)
defined(OS_WIN)
: is_broker_(is_broker) : is_broker_(is_broker)
#endif #endif
{ {
...@@ -124,8 +123,7 @@ class PpapiPluginSandboxedProcessLauncherDelegate ...@@ -124,8 +123,7 @@ class PpapiPluginSandboxedProcessLauncherDelegate
} }
private: private:
#if (defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)) || \ #if BUILDFLAG(USE_ZYGOTE_HANDLE) || defined(OS_WIN)
defined(OS_WIN)
bool is_broker_; bool is_broker_;
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment