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

Unified Diff: chrome/browser/notifications/message_center_notifications_unittest.cc

Issue 890293002: Fixing crash upon window manager creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
Index: chrome/browser/notifications/message_center_notifications_unittest.cc
diff --git a/chrome/browser/notifications/message_center_notifications_unittest.cc b/chrome/browser/notifications/message_center_notifications_unittest.cc
index a216f858f07d8e54f9f032678f6a8a15f86431e1..c4da0bf246f22e745fc4922984eb71ea81631d6b 100644
--- a/chrome/browser/notifications/message_center_notifications_unittest.cc
+++ b/chrome/browser/notifications/message_center_notifications_unittest.cc
@@ -146,6 +146,7 @@ TEST_F(MessageCenterNotificationManagerTest, MultiUserUpdates) {
std::string active_user_id = multi_user_util::GetUserIDFromProfile(&profile);
chrome::MultiUserWindowManagerChromeOS* multi_user_window_manager =
new chrome::MultiUserWindowManagerChromeOS(active_user_id);
+ multi_user_window_manager->Init();
chrome::MultiUserWindowManager::SetInstanceForTest(
multi_user_window_manager,
chrome::MultiUserWindowManager::MULTI_PROFILE_MODE_SEPARATED);

Powered by Google App Engine
This is Rietveld 408576698