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

Unified Diff: chrome/test/base/testing_browser_process.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
Index: chrome/test/base/testing_browser_process.cc
diff --git a/chrome/test/base/testing_browser_process.cc b/chrome/test/base/testing_browser_process.cc
index 72409a87fca65add4fcfaba9f60958d13a0bbd89..57f6029dff80c8a7ceac05f72b3f5baccac77d42 100644
--- a/chrome/test/base/testing_browser_process.cc
+++ b/chrome/test/base/testing_browser_process.cc
@@ -75,6 +75,7 @@ TestingBrowserProcess::TestingBrowserProcess()
system_request_context_(nullptr),
rappor_service_(nullptr),
platform_part_(new TestingBrowserProcessPlatformPart()) {
+ message_center::MessageCenter::Initialize();
#if BUILDFLAG(ENABLE_EXTENSIONS)
extensions_browser_client_.reset(
new extensions::ChromeExtensionsBrowserClient);
@@ -90,6 +91,7 @@ TestingBrowserProcess::~TestingBrowserProcess() {
extensions::ExtensionsBrowserClient::Set(nullptr);
#endif
+ message_center::MessageCenter::Shutdown();
// Destructors for some objects owned by TestingBrowserProcess will use
// g_browser_process if it is not null, so it must be null before proceeding.
DCHECK_EQ(static_cast<BrowserProcess*>(nullptr), g_browser_process);
« no previous file with comments | « chrome/browser/usb/web_usb_detector_unittest.cc ('k') | chrome/test/base/view_event_test_platform_part_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698