| 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 8f68ec19f34da2025a5e081b01d30dc4eaa9747d..4472e10b675516d2a03205e277ecb7569ff480c1 100644
|
| --- a/chrome/test/base/testing_browser_process.cc
|
| +++ b/chrome/test/base/testing_browser_process.cc
|
| @@ -21,8 +21,6 @@
|
| #if !defined(OS_IOS)
|
| #include "chrome/browser/notifications/notification_ui_manager.h"
|
| #include "chrome/browser/prerender/prerender_tracker.h"
|
| -#include "chrome/browser/printing/background_printing_manager.h"
|
| -#include "chrome/browser/printing/print_preview_dialog_controller.h"
|
| #include "chrome/browser/safe_browsing/safe_browsing_service.h"
|
| #include "chrome/browser/thumbnails/render_widget_snapshot_taker.h"
|
| #endif
|
| @@ -39,6 +37,11 @@
|
| #include "chrome/browser/policy/policy_service_stub.h"
|
| #endif // defined(ENABLE_CONFIGURATION_POLICY)
|
|
|
| +#if defined(ENABLE_FULL_PRINTING)
|
| +#include "chrome/browser/printing/background_printing_manager.h"
|
| +#include "chrome/browser/printing/print_preview_dialog_controller.h"
|
| +#endif
|
| +
|
| // static
|
| TestingBrowserProcess* TestingBrowserProcess::GetGlobal() {
|
| return static_cast<TestingBrowserProcess*>(g_browser_process);
|
| @@ -246,7 +249,7 @@ printing::PrintJobManager* TestingBrowserProcess::print_job_manager() {
|
|
|
| printing::PrintPreviewDialogController*
|
| TestingBrowserProcess::print_preview_dialog_controller() {
|
| -#if defined(ENABLE_PRINTING)
|
| +#if defined(ENABLE_FULL_PRINTING)
|
| if (!print_preview_dialog_controller_.get())
|
| print_preview_dialog_controller_ =
|
| new printing::PrintPreviewDialogController();
|
| @@ -259,7 +262,7 @@ TestingBrowserProcess::print_preview_dialog_controller() {
|
|
|
| printing::BackgroundPrintingManager*
|
| TestingBrowserProcess::background_printing_manager() {
|
| -#if defined(ENABLE_PRINTING)
|
| +#if defined(ENABLE_FULL_PRINTING)
|
| if (!background_printing_manager_.get()) {
|
| background_printing_manager_.reset(
|
| new printing::BackgroundPrintingManager());
|
|
|