| OLD | NEW |
| 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/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "chrome/browser/background/background_mode_manager.h" | 10 #include "chrome/browser/background/background_mode_manager.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 #if !defined(OS_IOS) && !defined(OS_ANDROID) | 29 #if !defined(OS_IOS) && !defined(OS_ANDROID) |
| 30 #include "chrome/browser/media_galleries/media_file_system_registry.h" | 30 #include "chrome/browser/media_galleries/media_file_system_registry.h" |
| 31 #include "chrome/browser/storage_monitor/storage_monitor.h" | 31 #include "chrome/browser/storage_monitor/storage_monitor.h" |
| 32 #include "chrome/browser/storage_monitor/test_storage_monitor.h" | 32 #include "chrome/browser/storage_monitor/test_storage_monitor.h" |
| 33 #endif | 33 #endif |
| 34 | 34 |
| 35 #if defined(ENABLE_CONFIGURATION_POLICY) | 35 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 36 #include "chrome/browser/policy/browser_policy_connector.h" | 36 #include "chrome/browser/policy/browser_policy_connector.h" |
| 37 #else | 37 #else |
| 38 #include "chrome/browser/policy/policy_service_stub.h" | 38 #include "components/policy/core/common/policy_service_stub.h" |
| 39 #endif // defined(ENABLE_CONFIGURATION_POLICY) | 39 #endif // defined(ENABLE_CONFIGURATION_POLICY) |
| 40 | 40 |
| 41 #if defined(ENABLE_FULL_PRINTING) | 41 #if defined(ENABLE_FULL_PRINTING) |
| 42 #include "chrome/browser/printing/background_printing_manager.h" | 42 #include "chrome/browser/printing/background_printing_manager.h" |
| 43 #include "chrome/browser/printing/print_preview_dialog_controller.h" | 43 #include "chrome/browser/printing/print_preview_dialog_controller.h" |
| 44 #endif | 44 #endif |
| 45 | 45 |
| 46 // static | 46 // static |
| 47 TestingBrowserProcess* TestingBrowserProcess::GetGlobal() { | 47 TestingBrowserProcess* TestingBrowserProcess::GetGlobal() { |
| 48 return static_cast<TestingBrowserProcess*>(g_browser_process); | 48 return static_cast<TestingBrowserProcess*>(g_browser_process); |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 sb_service_ = sb_service; | 421 sb_service_ = sb_service; |
| 422 #endif | 422 #endif |
| 423 } | 423 } |
| 424 | 424 |
| 425 void TestingBrowserProcess::SetStorageMonitor( | 425 void TestingBrowserProcess::SetStorageMonitor( |
| 426 scoped_ptr<StorageMonitor> storage_monitor) { | 426 scoped_ptr<StorageMonitor> storage_monitor) { |
| 427 #if !defined(OS_IOS) && !defined(OS_ANDROID) | 427 #if !defined(OS_IOS) && !defined(OS_ANDROID) |
| 428 storage_monitor_ = storage_monitor.Pass(); | 428 storage_monitor_ = storage_monitor.Pass(); |
| 429 #endif | 429 #endif |
| 430 } | 430 } |
| OLD | NEW |