Index: chrome/browser/extensions/api/chrome_extensions_api_client.cc |
diff --git a/chrome/browser/extensions/api/chrome_extensions_api_client.cc b/chrome/browser/extensions/api/chrome_extensions_api_client.cc |
index 0e02af7f0108b4bee51b32687185f421c1238513..d65c7b41f03bba7374b7879f714b53298c1789aa 100644 |
--- a/chrome/browser/extensions/api/chrome_extensions_api_client.cc |
+++ b/chrome/browser/extensions/api/chrome_extensions_api_client.cc |
@@ -32,19 +32,20 @@ |
#include "extensions/browser/api/virtual_keyboard_private/virtual_keyboard_delegate.h" |
#include "extensions/browser/guest_view/web_view/web_view_guest.h" |
#include "extensions/browser/guest_view/web_view/web_view_permission_helper.h" |
+#include "printing/features/features.h" |
#if defined(OS_CHROMEOS) |
#include "chrome/browser/extensions/api/virtual_keyboard_private/chrome_virtual_keyboard_delegate.h" |
#endif |
-#if defined(ENABLE_PRINTING) |
-#if defined(ENABLE_PRINT_PREVIEW) |
+#if BUILDFLAG(ENABLE_PRINTING) |
+#if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
#include "chrome/browser/printing/print_preview_message_handler.h" |
#include "chrome/browser/printing/print_view_manager.h" |
#else |
#include "chrome/browser/printing/print_view_manager_basic.h" |
-#endif // defined(ENABLE_PRINT_PREVIEW) |
-#endif // defined(ENABLE_PRINTING) |
+#endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) |
+#endif // BUILDFLAG(ENABLE_PRINTING) |
namespace extensions { |
@@ -70,14 +71,14 @@ void ChromeExtensionsAPIClient::AddAdditionalValueStoreCaches( |
void ChromeExtensionsAPIClient::AttachWebContentsHelpers( |
content::WebContents* web_contents) const { |
favicon::CreateContentFaviconDriverForWebContents(web_contents); |
-#if defined(ENABLE_PRINTING) |
-#if defined(ENABLE_PRINT_PREVIEW) |
+#if BUILDFLAG(ENABLE_PRINTING) |
+#if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
printing::PrintViewManager::CreateForWebContents(web_contents); |
printing::PrintPreviewMessageHandler::CreateForWebContents(web_contents); |
#else |
printing::PrintViewManagerBasic::CreateForWebContents(web_contents); |
-#endif // defined(ENABLE_PRINT_PREVIEW) |
-#endif // defined(ENABLE_PRINTING) |
+#endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) |
+#endif // BUILDFLAG(ENABLE_PRINTING) |
pdf::PDFWebContentsHelper::CreateForWebContentsWithClient( |
web_contents, std::unique_ptr<pdf::PDFWebContentsHelperClient>( |
new ChromePDFWebContentsHelperClient())); |