Index: chrome/browser/ui/browser_command_controller.cc |
diff --git a/chrome/browser/ui/browser_command_controller.cc b/chrome/browser/ui/browser_command_controller.cc |
index 3872c17c6133d00076915b59564e119f1ffcede5..7e01c342124edf26289b258251d7428d49bf0d64 100644 |
--- a/chrome/browser/ui/browser_command_controller.cc |
+++ b/chrome/browser/ui/browser_command_controller.cc |
@@ -57,6 +57,7 @@ |
#include "content/public/common/url_constants.h" |
#include "extensions/browser/extension_system.h" |
#include "mash/public/interfaces/launchable.mojom.h" |
+#include "printing/features/features.h" |
#include "services/service_manager/public/cpp/connector.h" |
#include "ui/events/keycodes/keyboard_codes.h" |
@@ -443,7 +444,7 @@ void BrowserCommandController::ExecuteCommandWithDisposition( |
Print(browser_); |
break; |
-#if defined(ENABLE_BASIC_PRINTING) |
+#if BUILDFLAG(ENABLE_BASIC_PRINTING) |
case IDC_BASIC_PRINT: |
content::RecordAction(base::UserMetricsAction("Accel_Advanced_Print")); |
BasicPrint(browser_); |
@@ -1096,7 +1097,7 @@ void BrowserCommandController::UpdateCommandsForFullscreenMode() { |
void BrowserCommandController::UpdatePrintingState() { |
bool print_enabled = CanPrint(browser_); |
command_updater_.UpdateCommandEnabled(IDC_PRINT, print_enabled); |
-#if defined(ENABLE_BASIC_PRINTING) |
+#if BUILDFLAG(ENABLE_BASIC_PRINTING) |
command_updater_.UpdateCommandEnabled(IDC_BASIC_PRINT, |
CanBasicPrint(browser_)); |
#endif // ENABLE_BASIC_PRINTING |