| 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 483e99dfd41351f67644ca7d7f5fb416b30f1ace..15cb6955924d0ebdcf1196dc51f8700812c1d38d 100644
|
| --- a/chrome/test/base/testing_browser_process.cc
|
| +++ b/chrome/test/base/testing_browser_process.cc
|
| @@ -46,6 +46,7 @@
|
| #if BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
| #include "chrome/browser/printing/background_printing_manager.h"
|
| #include "chrome/browser/printing/print_preview_dialog_controller.h"
|
| +#include "chrome/browser/printing/print_preview_test.h"
|
| #endif
|
|
|
| // static
|
| @@ -270,9 +271,10 @@ printing::PrintJobManager* TestingBrowserProcess::print_job_manager() {
|
| printing::PrintPreviewDialogController*
|
| TestingBrowserProcess::print_preview_dialog_controller() {
|
| #if BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
| - if (!print_preview_dialog_controller_.get())
|
| + if (!print_preview_dialog_controller_.get()) {
|
| print_preview_dialog_controller_ =
|
| new printing::PrintPreviewDialogController();
|
| + }
|
| return print_preview_dialog_controller_.get();
|
| #else
|
| NOTIMPLEMENTED();
|
| @@ -280,6 +282,15 @@ TestingBrowserProcess::print_preview_dialog_controller() {
|
| #endif
|
| }
|
|
|
| +void TestingBrowserProcess::SetPrintPreviewDialogController(
|
| + printing::PrintPreviewDialogController* controller) {
|
| +#if BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
| + print_preview_dialog_controller_ = controller;
|
| +#else
|
| + NOTIMPLEMENTED();
|
| +#endif
|
| +}
|
| +
|
| printing::BackgroundPrintingManager*
|
| TestingBrowserProcess::background_printing_manager() {
|
| #if BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
|
|