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

Unified Diff: chrome/browser/chrome_browser_main_extra_parts_aura.cc

Issue 8805033: Makes tests either use mock compositor or mock WebGraphicsContext3D (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweaks Created 9 years 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 | « no previous file | chrome/chrome_tests.gypi » ('j') | chrome/common/chrome_switches.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main_extra_parts_aura.cc
diff --git a/chrome/browser/chrome_browser_main_extra_parts_aura.cc b/chrome/browser/chrome_browser_main_extra_parts_aura.cc
index 0ce66bdd945add6f9d028045f8d1612c2267fcf9..a074ad7e04d27d0b8ea56066b99398a5341d4259 100644
--- a/chrome/browser/chrome_browser_main_extra_parts_aura.cc
+++ b/chrome/browser/chrome_browser_main_extra_parts_aura.cc
@@ -3,10 +3,14 @@
// found in the LICENSE file.
#include "chrome/browser/chrome_browser_main_extra_parts_aura.h"
+
+#include "base/command_line.h"
#include "chrome/browser/ui/views/aura/chrome_shell_delegate.h"
#include "chrome/browser/ui/views/aura/screen_orientation_listener.h"
+#include "chrome/common/chrome_switches.h"
#include "ui/aura/desktop.h"
#include "ui/aura_shell/shell.h"
+#include "ui/gfx/compositor/compositor_setup.h"
#if defined(OS_CHROMEOS)
#include "chrome/browser/chromeos/system/runtime_environment.h"
@@ -17,6 +21,9 @@ ChromeBrowserMainExtraPartsAura::ChromeBrowserMainExtraPartsAura()
}
void ChromeBrowserMainExtraPartsAura::PostBrowserProcessInit() {
+ if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kTestCompositor))
+ ui::SetupTestCompositor();
+
#if defined(OS_CHROMEOS)
if (chromeos::system::runtime_environment::IsRunningOnChromeOS())
aura::Desktop::set_use_fullscreen_host_window(true);
« no previous file with comments | « no previous file | chrome/chrome_tests.gypi » ('j') | chrome/common/chrome_switches.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698