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

Unified Diff: chrome/browser/background/background_contents_service_unittest.cc

Issue 2528013002: Initialize the message center as part of the testing browser process (Closed)
Patch Set: re-uploding due to time outs Created 4 years, 1 month 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 | « ash/test/test_suite.cc ('k') | chrome/browser/background/background_mode_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/background/background_contents_service_unittest.cc
diff --git a/chrome/browser/background/background_contents_service_unittest.cc b/chrome/browser/background/background_contents_service_unittest.cc
index ee49d79efdd7eeeed22e28b4964805f1669b8d38..0690341648546e7f44493e4b44c2c58d168376d3 100644
--- a/chrome/browser/background/background_contents_service_unittest.cc
+++ b/chrome/browser/background/background_contents_service_unittest.cc
@@ -180,11 +180,6 @@ class BackgroundContentsServiceNotificationTest
// Overridden from testing::Test
void SetUp() override {
BrowserWithTestWindowTest::SetUp();
- // In ChromeOS environment, BrowserWithTestWindowTest initializes
- // MessageCenter.
-#if !defined(OS_CHROMEOS)
- message_center::MessageCenter::Initialize();
-#endif
profile_manager_.reset(new TestingProfileManager(
TestingBrowserProcess::GetGlobal()));
ASSERT_TRUE(profile_manager_->SetUp());
@@ -199,9 +194,6 @@ class BackgroundContentsServiceNotificationTest
void TearDown() override {
g_browser_process->notification_ui_manager()->CancelAll();
profile_manager_.reset();
-#if !defined(OS_CHROMEOS)
- message_center::MessageCenter::Shutdown();
-#endif
BrowserWithTestWindowTest::TearDown();
}
« no previous file with comments | « ash/test/test_suite.cc ('k') | chrome/browser/background/background_mode_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698