Index: chrome/browser/android/chrome_jni_registrar.cc |
diff --git a/chrome/browser/android/chrome_jni_registrar.cc b/chrome/browser/android/chrome_jni_registrar.cc |
index 7abb0b20ddffe108daf97fae955eed70e8f03c6e..f7e15147e5c78c5d490d72ba90143213fffa1752 100644 |
--- a/chrome/browser/android/chrome_jni_registrar.cc |
+++ b/chrome/browser/android/chrome_jni_registrar.cc |
@@ -172,8 +172,9 @@ |
#include "components/url_formatter/android/component_jni_registrar.h" |
#include "components/variations/android/component_jni_registrar.h" |
#include "components/web_contents_delegate_android/component_jni_registrar.h" |
+#include "printing/features/features.h" |
-#if defined(ENABLE_PRINTING) && !defined(ENABLE_PRINT_PREVIEW) |
+#if BUILDFLAG(ENABLE_PRINTING) && !BUILDFLAG(ENABLE_PRINT_PREVIEW) |
#include "printing/printing_context_android.h" |
#endif |
@@ -404,7 +405,7 @@ static base::android::RegistrationMethod kChromeRegisteredMethods[] = { |
{"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge}, |
{"WebsiteSettingsPopupAndroid", |
WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid}, |
-#if defined(ENABLE_PRINTING) && !defined(ENABLE_PRINT_PREVIEW) |
+#if BUILDFLAG(ENABLE_PRINTING) && !BUILDFLAG(ENABLE_PRINT_PREVIEW) |
{"PrintingContext", |
printing::PrintingContextAndroid::RegisterPrintingContext}, |
#endif |