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

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

Issue 14951007: Refactor BrowserProcessPlatformPart. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ios? 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
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 "chrome/test/base/testing_browser_process_platform_part.h"
13 #include "content/public/browser/notification_service.h" 14 #include "content/public/browser/notification_service.h"
14 #include "net/url_request/url_request_context_getter.h" 15 #include "net/url_request/url_request_context_getter.h"
15 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
16 #include "ui/message_center/message_center.h" 17 #include "ui/message_center/message_center.h"
17 18
18 #if !defined(OS_IOS) 19 #if !defined(OS_IOS)
19 #include "chrome/browser/media_galleries/media_file_system_registry.h" 20 #include "chrome/browser/media_galleries/media_file_system_registry.h"
20 #include "chrome/browser/notifications/notification_ui_manager.h" 21 #include "chrome/browser/notifications/notification_ui_manager.h"
21 #include "chrome/browser/prerender/prerender_tracker.h" 22 #include "chrome/browser/prerender/prerender_tracker.h"
22 #include "chrome/browser/printing/background_printing_manager.h" 23 #include "chrome/browser/printing/background_printing_manager.h"
23 #include "chrome/browser/printing/print_preview_dialog_controller.h" 24 #include "chrome/browser/printing/print_preview_dialog_controller.h"
24 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 25 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
25 #include "chrome/browser/thumbnails/render_widget_snapshot_taker.h" 26 #include "chrome/browser/thumbnails/render_widget_snapshot_taker.h"
26 #endif 27 #endif
27 28
28 #if defined(OS_CHROMEOS)
29 #include "chrome/test/base/testing_browser_process_platform_part_chromeos.h"
30 #else
31 #include "chrome/test/base/testing_browser_process_platform_part.h"
32 #endif // defined(OS_CHROMEOS)
33
34 #if defined(ENABLE_CONFIGURATION_POLICY) 29 #if defined(ENABLE_CONFIGURATION_POLICY)
35 #include "chrome/browser/policy/browser_policy_connector.h" 30 #include "chrome/browser/policy/browser_policy_connector.h"
36 #else 31 #else
37 #include "chrome/browser/policy/policy_service_stub.h" 32 #include "chrome/browser/policy/policy_service_stub.h"
38 #endif // defined(ENABLE_CONFIGURATION_POLICY) 33 #endif // defined(ENABLE_CONFIGURATION_POLICY)
39 34
40 // static 35 // static
41 TestingBrowserProcess* TestingBrowserProcess::GetGlobal() { 36 TestingBrowserProcess* TestingBrowserProcess::GetGlobal() {
42 return static_cast<TestingBrowserProcess*>(g_browser_process); 37 return static_cast<TestingBrowserProcess*>(g_browser_process);
43 } 38 }
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 #endif 374 #endif
380 } 375 }
381 376
382 void TestingBrowserProcess::SetSafeBrowsingService( 377 void TestingBrowserProcess::SetSafeBrowsingService(
383 SafeBrowsingService* sb_service) { 378 SafeBrowsingService* sb_service) {
384 #if !defined(OS_IOS) 379 #if !defined(OS_IOS)
385 NOTIMPLEMENTED(); 380 NOTIMPLEMENTED();
386 sb_service_ = sb_service; 381 sb_service_ = sb_service;
387 #endif 382 #endif
388 } 383 }
OLDNEW
« no previous file with comments | « chrome/test/base/testing_browser_process.h ('k') | chrome/test/base/testing_browser_process_platform_part.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698