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

Unified Diff: trunk/src/chrome/test/ui/ui_test.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
« no previous file with comments | « trunk/src/chrome/test/ppapi/ppapi_test.cc ('k') | trunk/src/components/test/run_all_unittests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/test/ui/ui_test.cc
===================================================================
--- trunk/src/chrome/test/ui/ui_test.cc (revision 216906)
+++ trunk/src/chrome/test/ui/ui_test.cc (working copy)
@@ -58,6 +58,10 @@
#include "base/win/windows_version.h"
#endif
+#if defined(USE_AURA)
+#include "ui/compositor/compositor_switches.h"
+#endif
+
using base::Time;
using base::TimeDelta;
using base::TimeTicks;
@@ -204,6 +208,12 @@
}
if (!test_name_.empty())
launch_arguments_.AppendSwitchASCII(switches::kTestName, test_name_);
+#if defined(USE_AURA)
+ if (!CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableTestCompositor)) {
+ launch_arguments_.AppendSwitch(switches::kTestCompositor);
+ }
+#endif
}
void UITestBase::SetUpProfile() {
« no previous file with comments | « trunk/src/chrome/test/ppapi/ppapi_test.cc ('k') | trunk/src/components/test/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698