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

Unified Diff: chrome/test/base/testing_browser_process.cc

Issue 2172363002: Created min size for print preview dialog and modified to allow the Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge ConstrainedWebDialog functions Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/base/testing_browser_process.h ('k') | components/constrained_window/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « chrome/test/base/testing_browser_process.h ('k') | components/constrained_window/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698