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 c5814373665e787f7b92743a668e1ef32e533edc..88deaae1cf762de900f82a562de8397bcae5791b 100644 |
--- a/chrome/test/base/testing_browser_process.cc |
+++ b/chrome/test/base/testing_browser_process.cc |
@@ -30,6 +30,10 @@ |
#include "chrome/browser/policy/policy_service_stub.h" |
#endif // defined(ENABLE_CONFIGURATION_POLICY) |
+#if defined(ENABLE_MESSAGE_CENTER) |
+#include "ui/message_center/message_center.h" |
+#endif |
+ |
// static |
TestingBrowserProcess* TestingBrowserProcess::GetGlobal() { |
return static_cast<TestingBrowserProcess*>(g_browser_process); |
@@ -188,6 +192,17 @@ NotificationUIManager* TestingBrowserProcess::notification_ui_manager() { |
#endif |
} |
+message_center::MessageCenter* TestingBrowserProcess::message_center() { |
+#if defined(ENABLE_MESSAGE_CENTER) |
+ if (!message_center_.get()) |
+ message_center_.reset(new message_center::MessageCenter()); |
+ return message_center_.get(); |
+#else |
+ NOTIMPLEMENTED(); |
+ return NULL; |
+#endif |
+} |
+ |
IntranetRedirectDetector* TestingBrowserProcess::intranet_redirect_detector() { |
return NULL; |
} |