build_disable_print_content_analysis.patch 1.3 KB

123456789101112131415161718192021222324252627
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: VerteDinde <[email protected]>
  3. Date: Sun, 1 May 2022 18:01:42 -0700
  4. Subject: build: disable print_content_analysis
  5. Print Content Analysis enables enterprise users to scan to-be-printed
  6. pages and documents for sensitive data if the OnPrintEnterpriseConnector
  7. policy is enabled. A conversation with the Chromium team confirmed
  8. this feature was intended for enterprise Chrome users and not embedders,
  9. so we're disabling it to prevent build issues/additional unneeded files.
  10. This patch can be removed when enable_print_content_analysis can be more
  11. easily enabled or disabled by default with buildflags.
  12. diff --git a/printing/buildflags/buildflags.gni b/printing/buildflags/buildflags.gni
  13. index fa9004e2ec3e3e785d0ea590ea8c632db7cbadda..da809d75f191fe0437cd783f8689b0b3866e343b 100644
  14. --- a/printing/buildflags/buildflags.gni
  15. +++ b/printing/buildflags/buildflags.gni
  16. @@ -48,7 +48,7 @@ declare_args() {
  17. # Enable snapshotting a page when printing for its content to be analyzed for
  18. # sensitive content by enterprise users.
  19. - enable_print_content_analysis = is_chromeos || is_win || is_linux || is_mac
  20. + enable_print_content_analysis = is_chromeos_ash || is_chromeos_lacros
  21. }
  22. declare_args() {