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

Unified Diff: trunk/src/ash/test/ash_test_helper.cc

Issue 14631021: Revert 199625 "Remove ENABLE_MESSAGE_CENTER" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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/ash/shell/content_client/shell_browser_main_parts.cc ('k') | trunk/src/build/common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/ash/test/ash_test_helper.cc
===================================================================
--- trunk/src/ash/test/ash_test_helper.cc (revision 199638)
+++ trunk/src/ash/test/ash_test_helper.cc (working copy)
@@ -14,7 +14,11 @@
#include "ui/aura/env.h"
#include "ui/base/ime/text_input_test_support.h"
#include "ui/compositor/scoped_animation_duration_scale_mode.h"
+
+
+#if defined(ENABLE_MESSAGE_CENTER)
#include "ui/message_center/message_center.h"
+#endif
namespace ash {
namespace test {
@@ -41,9 +45,11 @@
// Creates Shell and hook with Desktop.
test_shell_delegate_ = new TestShellDelegate;
+#if defined(ENABLE_MESSAGE_CENTER)
// Creates MessageCenter since g_browser_process is not created in AshTestBase
// tests.
message_center::MessageCenter::Initialize();
+#endif
ash::Shell::CreateInstance(test_shell_delegate_);
Shell* shell = Shell::GetInstance();
test::DisplayManagerTestApi(shell->display_manager()).
@@ -56,8 +62,10 @@
// Tear down the shell.
Shell::DeleteInstance();
+#if defined(ENABLE_MESSAGE_CENTER)
// Remove global message center state.
message_center::MessageCenter::Shutdown();
+#endif
aura::Env::DeleteInstance();
ui::TextInputTestSupport::Shutdown();
« no previous file with comments | « trunk/src/ash/shell/content_client/shell_browser_main_parts.cc ('k') | trunk/src/build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698