Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(641)

Unified Diff: ui/gl/test/gl_surface_test_support.cc

Issue 2683033006: Move SetUseOverrideRedirectWindowByDefault() to //ui/base. (Closed)
Patch Set: g_use_test_config. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/test/DEPS ('k') | ui/platform_window/x11/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/test/gl_surface_test_support.cc
diff --git a/ui/gl/test/gl_surface_test_support.cc b/ui/gl/test/gl_surface_test_support.cc
index 88f4fed000a2557f25ee5b5dac7057003ef14eab..a610c2af88394c306a4b84949da0e4e96d43a34d 100644
--- a/ui/gl/test/gl_surface_test_support.cc
+++ b/ui/gl/test/gl_surface_test_support.cc
@@ -9,6 +9,7 @@
#include "base/command_line.h"
#include "base/logging.h"
#include "build/build_config.h"
+#include "ui/base/platform_window_defaults.h"
#include "ui/gl/gl_context.h"
#include "ui/gl/gl_implementation.h"
#include "ui/gl/gl_switches.h"
@@ -20,7 +21,6 @@
#if defined(USE_X11)
#include <X11/Xlib.h>
-#include "ui/platform_window/x11/x11_window.h"
#endif
namespace gl {
@@ -31,8 +31,8 @@ void GLSurfaceTestSupport::InitializeOneOff() {
#if defined(USE_X11)
XInitThreads();
- ui::test::SetUseOverrideRedirectWindowByDefault(true);
#endif
+ ui::test::EnableTestConfigForPlatformWindows();
bool use_osmesa = true;
« no previous file with comments | « ui/gl/test/DEPS ('k') | ui/platform_window/x11/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698