| Index: extensions/browser/api/app_window/app_window_apitest.cc
|
| diff --git a/extensions/browser/api/app_window/app_window_apitest.cc b/extensions/browser/api/app_window/app_window_apitest.cc
|
| index 3d68f8626e6c0a2b07cb718e8542875fdd2eeb35..63ac734d842153fbe1796ac190c3da459112a44f 100644
|
| --- a/extensions/browser/api/app_window/app_window_apitest.cc
|
| +++ b/extensions/browser/api/app_window/app_window_apitest.cc
|
| @@ -2,7 +2,6 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "base/compiler_specific.h"
|
| #include "base/macros.h"
|
| #include "base/run_loop.h"
|
| #include "base/strings/string_number_conversions.h"
|
| @@ -24,10 +23,6 @@
|
| #include "ui/base/win/shell.h"
|
| #endif
|
|
|
| -#if defined(USE_X11) && !defined(OS_CHROMEOS)
|
| -#include "ui/gfx/x/x11_switches.h"
|
| -#endif
|
| -
|
| namespace extensions {
|
|
|
| namespace {
|
| @@ -135,29 +130,19 @@
|
|
|
| IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest,
|
| WindowsApiAlphaEnabledHasPermissions) {
|
| - const char kNoAlphaDir[] =
|
| + const char* no_alpha_dir =
|
| "platform_apps/windows_api_alpha_enabled/has_permissions_no_alpha";
|
| - const char kHasAlphaDir[] =
|
| + const char* test_dir = no_alpha_dir;
|
| +
|
| +#if defined(USE_AURA) && (defined(OS_CHROMEOS) || !defined(OS_LINUX))
|
| + test_dir =
|
| "platform_apps/windows_api_alpha_enabled/has_permissions_has_alpha";
|
| - ALLOW_UNUSED_LOCAL(kHasAlphaDir);
|
| - const char* test_dir = kNoAlphaDir;
|
| -
|
| -#if defined(USE_AURA) && (defined(OS_CHROMEOS) || !defined(OS_LINUX))
|
| - test_dir = kHasAlphaDir;
|
| -
|
| #if defined(OS_WIN)
|
| if (!ui::win::IsAeroGlassEnabled()) {
|
| - test_dir = kNoAlphaDir;
|
| + test_dir = no_alpha_dir;
|
| }
|
| #endif // OS_WIN
|
| #endif // USE_AURA && (OS_CHROMEOS || !OS_LINUX)
|
| -
|
| -#if defined(USE_X11) && !defined(OS_CHROMEOS)
|
| - if (base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
|
| - switches::kWindowDepth) == "32") {
|
| - test_dir = kHasAlphaDir;
|
| - }
|
| -#endif // USE_X11 && !OS_CHROMEOS
|
|
|
| EXPECT_TRUE(RunPlatformAppTest(test_dir)) << message_;
|
| }
|
|
|