| Index: chrome/test/base/web_ui_browser_test.cc
|
| diff --git a/chrome/test/base/web_ui_browser_test.cc b/chrome/test/base/web_ui_browser_test.cc
|
| index afb17ec60b16c6cd0b485a96c1a073fee6105ee2..c50a43458e417ea7807b06f0105ac1e20acec35d 100644
|
| --- a/chrome/test/base/web_ui_browser_test.cc
|
| +++ b/chrome/test/base/web_ui_browser_test.cc
|
| @@ -36,9 +36,10 @@
|
| #include "content/public/test/browser_test_utils.h"
|
| #include "content/public/test/test_navigation_observer.h"
|
| #include "net/base/filename_util.h"
|
| +#include "printing/features/features.h"
|
| #include "ui/base/resource/resource_handle.h"
|
|
|
| -#if defined(ENABLE_PRINT_PREVIEW)
|
| +#if BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
| #include "chrome/browser/printing/print_preview_dialog_controller.h"
|
| #endif
|
|
|
| @@ -237,7 +238,7 @@ void WebUIBrowserTest::BrowsePreload(const GURL& browse_to) {
|
| navigation_observer.Wait();
|
| }
|
|
|
| -#if defined(ENABLE_PRINT_PREVIEW)
|
| +#if BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
|
|
| // This custom ContentBrowserClient is used to get notified when a WebContents
|
| // for the print preview dialog gets created.
|
| @@ -280,7 +281,7 @@ class PrintContentBrowserClient : public ChromeContentBrowserClient {
|
| #endif
|
|
|
| void WebUIBrowserTest::BrowsePrintPreload(const GURL& browse_to) {
|
| -#if defined(ENABLE_PRINT_PREVIEW)
|
| +#if BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
| ui_test_utils::NavigateToURL(browser(), browse_to);
|
|
|
| PrintContentBrowserClient new_client(
|
|
|