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

Side by Side Diff: chrome/test/base/testing_browser_process.cc

Issue 15025002: Remove ENABLE_MESSAGE_CENTER (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing static initializer Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/base/testing_browser_process.h ('k') | chrome/test/base/view_event_test_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/test/base/testing_browser_process.h" 5 #include "chrome/test/base/testing_browser_process.h"
6 6
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
11 #include "chrome/browser/profiles/profile_manager.h" 11 #include "chrome/browser/profiles/profile_manager.h"
12 #include "chrome/browser/ui/bookmarks/bookmark_prompt_controller.h" 12 #include "chrome/browser/ui/bookmarks/bookmark_prompt_controller.h"
13 #include "content/public/browser/notification_service.h" 13 #include "content/public/browser/notification_service.h"
14 #include "net/url_request/url_request_context_getter.h" 14 #include "net/url_request/url_request_context_getter.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 #include "ui/message_center/message_center.h"
16 17
17 #if !defined(OS_IOS) 18 #if !defined(OS_IOS)
18 #include "chrome/browser/media_galleries/media_file_system_registry.h" 19 #include "chrome/browser/media_galleries/media_file_system_registry.h"
19 #include "chrome/browser/notifications/notification_ui_manager.h" 20 #include "chrome/browser/notifications/notification_ui_manager.h"
20 #include "chrome/browser/prerender/prerender_tracker.h" 21 #include "chrome/browser/prerender/prerender_tracker.h"
21 #include "chrome/browser/printing/background_printing_manager.h" 22 #include "chrome/browser/printing/background_printing_manager.h"
22 #include "chrome/browser/printing/print_preview_dialog_controller.h" 23 #include "chrome/browser/printing/print_preview_dialog_controller.h"
23 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 24 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
24 #include "chrome/browser/thumbnails/render_widget_snapshot_taker.h" 25 #include "chrome/browser/thumbnails/render_widget_snapshot_taker.h"
25 #endif 26 #endif
26 27
27 #if defined(OS_CHROMEOS) 28 #if defined(OS_CHROMEOS)
28 #include "chrome/test/base/testing_browser_process_platform_part_chromeos.h" 29 #include "chrome/test/base/testing_browser_process_platform_part_chromeos.h"
29 #else 30 #else
30 #include "chrome/test/base/testing_browser_process_platform_part.h" 31 #include "chrome/test/base/testing_browser_process_platform_part.h"
31 #endif // defined(OS_CHROMEOS) 32 #endif // defined(OS_CHROMEOS)
32 33
33 #if defined(ENABLE_CONFIGURATION_POLICY) 34 #if defined(ENABLE_CONFIGURATION_POLICY)
34 #include "chrome/browser/policy/browser_policy_connector.h" 35 #include "chrome/browser/policy/browser_policy_connector.h"
35 #else 36 #else
36 #include "chrome/browser/policy/policy_service_stub.h" 37 #include "chrome/browser/policy/policy_service_stub.h"
37 #endif // defined(ENABLE_CONFIGURATION_POLICY) 38 #endif // defined(ENABLE_CONFIGURATION_POLICY)
38 39
39 #if defined(ENABLE_MESSAGE_CENTER)
40 #include "ui/message_center/message_center.h"
41 #endif
42
43 // static 40 // static
44 TestingBrowserProcess* TestingBrowserProcess::GetGlobal() { 41 TestingBrowserProcess* TestingBrowserProcess::GetGlobal() {
45 return static_cast<TestingBrowserProcess*>(g_browser_process); 42 return static_cast<TestingBrowserProcess*>(g_browser_process);
46 } 43 }
47 44
48 TestingBrowserProcess::TestingBrowserProcess() 45 TestingBrowserProcess::TestingBrowserProcess()
49 : notification_service_(content::NotificationService::Create()), 46 : notification_service_(content::NotificationService::Create()),
50 module_ref_count_(0), 47 module_ref_count_(0),
51 app_locale_("en"), 48 app_locale_("en"),
52 #if !defined(OS_IOS) 49 #if !defined(OS_IOS)
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 if (!notification_ui_manager_.get()) 190 if (!notification_ui_manager_.get())
194 notification_ui_manager_.reset( 191 notification_ui_manager_.reset(
195 NotificationUIManager::Create(local_state())); 192 NotificationUIManager::Create(local_state()));
196 return notification_ui_manager_.get(); 193 return notification_ui_manager_.get();
197 #else 194 #else
198 NOTIMPLEMENTED(); 195 NOTIMPLEMENTED();
199 return NULL; 196 return NULL;
200 #endif 197 #endif
201 } 198 }
202 199
203 #if defined(ENABLE_MESSAGE_CENTER)
204 message_center::MessageCenter* TestingBrowserProcess::message_center() { 200 message_center::MessageCenter* TestingBrowserProcess::message_center() {
205 return message_center::MessageCenter::Get(); 201 return message_center::MessageCenter::Get();
206 } 202 }
207 #endif
208 203
209 IntranetRedirectDetector* TestingBrowserProcess::intranet_redirect_detector() { 204 IntranetRedirectDetector* TestingBrowserProcess::intranet_redirect_detector() {
210 return NULL; 205 return NULL;
211 } 206 }
212 207
213 AutomationProviderList* TestingBrowserProcess::GetAutomationProviderList() { 208 AutomationProviderList* TestingBrowserProcess::GetAutomationProviderList() {
214 return NULL; 209 return NULL;
215 } 210 }
216 211
217 void TestingBrowserProcess::CreateDevToolsHttpProtocolHandler( 212 void TestingBrowserProcess::CreateDevToolsHttpProtocolHandler(
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 #endif 383 #endif
389 } 384 }
390 385
391 void TestingBrowserProcess::SetSafeBrowsingService( 386 void TestingBrowserProcess::SetSafeBrowsingService(
392 SafeBrowsingService* sb_service) { 387 SafeBrowsingService* sb_service) {
393 #if !defined(OS_IOS) 388 #if !defined(OS_IOS)
394 NOTIMPLEMENTED(); 389 NOTIMPLEMENTED();
395 sb_service_ = sb_service; 390 sb_service_ = sb_service;
396 #endif 391 #endif
397 } 392 }
OLDNEW
« no previous file with comments | « chrome/test/base/testing_browser_process.h ('k') | chrome/test/base/view_event_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698