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

Unified Diff: trunk/src/chrome/browser/extensions/requirements_checker_browsertest.cc

Issue 22648006: Revert 216780 "Clean up compositor initialization/destruction." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 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
Index: trunk/src/chrome/browser/extensions/requirements_checker_browsertest.cc
===================================================================
--- trunk/src/chrome/browser/extensions/requirements_checker_browsertest.cc (revision 216906)
+++ trunk/src/chrome/browser/extensions/requirements_checker_browsertest.cc (working copy)
@@ -17,6 +17,7 @@
#include "chrome/common/chrome_paths.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_file_util.h"
+#include "chrome/test/base/test_launcher_utils.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/gpu_data_manager.h"
#include "gpu/config/gpu_info.h"
@@ -28,6 +29,16 @@
class RequirementsCheckerBrowserTest : public ExtensionBrowserTest {
public:
+ virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
+ // We need to launch GPU process to decide if WebGL is allowed.
+ // Run it on top of osmesa to avoid bot driver issues.
+#if !defined(OS_MACOSX)
+ CHECK(test_launcher_utils::OverrideGLImplementation(
+ command_line, gfx::kGLImplementationOSMesaName)) <<
+ "kUseGL must not be set multiple times!";
+#endif
+ }
+
scoped_refptr<const Extension> LoadExtensionFromDirName(
const std::string& extension_dir_name) {
base::FilePath extension_path;
@@ -179,4 +190,4 @@
content::BrowserThread::GetBlockingPool()->FlushForTesting();
}
-} // namespace extensions
+} // extensions

Powered by Google App Engine
This is Rietveld 408576698