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

Unified Diff: chrome/test/base/testing_browser_process.cc

Issue 11958025: Start delegating notifications to MessageCenter on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix androif build Created 7 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/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;
}

Powered by Google App Engine
This is Rietveld 408576698