Commit f92e451c authored by Erik Chen's avatar Erik Chen Committed by Commit Bot

Fix lacros on chromeos compile.

The function CreateGlobalMenuBar() is only used in a block guarded by
defined(USE_DBUS_MENU), so the function definition should be guarded by
the same flag.

Change-Id: I4df2786b0e3dacd29bf4869575c5caf6bea01cc0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2316128
Auto-Submit: Erik Chen <erikchen@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Erik Chen <erikchen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#791369}
parent cb59b02a
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
namespace { namespace {
#if defined(USE_DBUS_MENU)
bool CreateGlobalMenuBar() { bool CreateGlobalMenuBar() {
#if defined(USE_OZONE) #if defined(USE_OZONE)
return ui::OzonePlatform::GetInstance() return ui::OzonePlatform::GetInstance()
...@@ -28,6 +29,7 @@ bool CreateGlobalMenuBar() { ...@@ -28,6 +29,7 @@ bool CreateGlobalMenuBar() {
return true; return true;
#endif #endif
} }
#endif
} // namespace } // namespace
......
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