Index: trunk/src/chrome/test/base/testing_browser_process.cc |
=================================================================== |
--- trunk/src/chrome/test/base/testing_browser_process.cc (revision 199638) |
+++ trunk/src/chrome/test/base/testing_browser_process.cc (working copy) |
@@ -13,7 +13,6 @@ |
#include "content/public/browser/notification_service.h" |
#include "net/url_request/url_request_context_getter.h" |
#include "testing/gtest/include/gtest/gtest.h" |
-#include "ui/message_center/message_center.h" |
#if !defined(OS_IOS) |
#include "chrome/browser/media_galleries/media_file_system_registry.h" |
@@ -37,6 +36,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); |
@@ -197,9 +200,11 @@ |
#endif |
} |
+#if defined(ENABLE_MESSAGE_CENTER) |
message_center::MessageCenter* TestingBrowserProcess::message_center() { |
return message_center::MessageCenter::Get(); |
} |
+#endif |
IntranetRedirectDetector* TestingBrowserProcess::intranet_redirect_detector() { |
return NULL; |