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

Unified Diff: trunk/src/content/test/content_test_suite.cc

Issue 149953003: Revert 247793 "Ensure GL initialization only happens once, and p..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 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 | « trunk/src/content/gpu/gpu_main.cc ('k') | trunk/src/gpu/command_buffer/common/unittest_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/content/test/content_test_suite.cc
===================================================================
--- trunk/src/content/test/content_test_suite.cc (revision 247809)
+++ trunk/src/content/test/content_test_suite.cc (working copy)
@@ -5,8 +5,6 @@
#include "content/test/content_test_suite.h"
#include "base/base_paths.h"
-#include "base/base_switches.h"
-#include "base/command_line.h"
#include "base/logging.h"
#include "base/path_service.h"
#include "content/public/test/test_content_client_initializer.h"
@@ -14,10 +12,6 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/resource/resource_bundle.h"
-#if !defined(OS_IOS)
-#include "ui/gl/gl_surface.h"
-#endif
-
#if defined(OS_MACOSX)
#include "base/mac/scoped_nsautorelease_pool.h"
#endif
@@ -71,13 +65,6 @@
ContentTestSuiteBase::Initialize();
-#if !defined(OS_IOS)
- // When running in a child process for Mac sandbox tests, the sandbox exists
- // to initialize GL, so don't do it here.
- if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kTestChildProcess))
- gfx::GLSurface::InitializeOneOffForTests();
-#endif
-
testing::TestEventListeners& listeners =
testing::UnitTest::GetInstance()->listeners();
listeners.Append(new TestInitializationListener);
« no previous file with comments | « trunk/src/content/gpu/gpu_main.cc ('k') | trunk/src/gpu/command_buffer/common/unittest_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698