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

Unified Diff: trunk/src/chrome/test/base/view_event_test_base.cc

Issue 276773004: Revert 269892 "linux_aura: Compile ash into chrome." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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/chrome_tests.gypi ('k') | trunk/src/ui/shell_dialogs/select_file_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/test/base/view_event_test_base.cc
===================================================================
--- trunk/src/chrome/test/base/view_event_test_base.cc (revision 269901)
+++ trunk/src/chrome/test/base/view_event_test_base.cc (working copy)
@@ -111,13 +111,13 @@
ui::InitializeContextFactoryForTests(enable_pixel_output);
#if defined(USE_ASH)
-#if !defined(OS_CHROMEOS)
+#if defined(OS_WIN)
// http://crbug.com/154081 use ash::Shell code path below on win_ash bots when
// interactive_ui_tests is brought up on that platform.
gfx::Screen::SetScreenInstance(
gfx::SCREEN_TYPE_NATIVE, views::CreateDesktopScreen());
-#else // !OS_CHROMEOS
+#else // !OS_WIN
// Ash Shell can't just live on its own without a browser process, we need to
// also create the message center.
message_center::MessageCenter::Initialize();
@@ -133,7 +133,7 @@
->SetActiveUserSessionStarted(true);
context = ash::Shell::GetPrimaryRootWindow();
context->GetHost()->Show();
-#endif // !OS_CHROMEOS
+#endif // !OS_WIN
aura::Env::CreateInstance(true);
#elif defined(USE_AURA)
// Instead of using the ash shell, use an AuraTestHelper to create and manage
@@ -158,15 +158,17 @@
ui::Clipboard::DestroyClipboardForCurrentThread();
#if defined(USE_ASH)
+#if !defined(OS_WIN)
+ ash::Shell::DeleteInstance();
#if defined(OS_CHROMEOS)
- ash::Shell::DeleteInstance();
chromeos::NetworkHandler::Shutdown();
chromeos::CrasAudioHandler::Shutdown();
chromeos::DBusThreadManager::Shutdown();
+#endif
// Ash Shell can't just live on its own without a browser process, we need to
// also shut down the message center.
message_center::MessageCenter::Shutdown();
-#endif
+#endif // !OS_WIN
aura::Env::DeleteInstance();
#elif defined(USE_AURA)
aura_test_helper_->TearDown();
« no previous file with comments | « trunk/src/chrome/chrome_tests.gypi ('k') | trunk/src/ui/shell_dialogs/select_file_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698