chore_add_buildflag_guard_around_new_include.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: Charles Kerr <[email protected]>
  3. Date: Wed, 5 Jul 2023 16:28:30 -0500
  4. Subject: chore: add BUILDFLAG guard around new include
  5. Xref: https://chromium-review.googlesource.com/c/chromium/src/+/4628373
  6. This is an experimental commit; but if it's successful,
  7. This patch should be upstreamed and then removed from electron's code.
  8. diff --git a/chrome/browser/ui/views/frame/browser_view.h b/chrome/browser/ui/views/frame/browser_view.h
  9. index 88686b784dac3d28d1f51e1fac3783f5c8ea9347..7eb898f37d2f7a75be316ea2f2bd6ef229a44ed3 100644
  10. --- a/chrome/browser/ui/views/frame/browser_view.h
  11. +++ b/chrome/browser/ui/views/frame/browser_view.h
  12. @@ -42,7 +42,6 @@
  13. #include "chrome/browser/ui/views/user_education/browser_feature_promo_controller.h"
  14. #include "chrome/common/buildflags.h"
  15. #include "components/infobars/core/infobar_container.h"
  16. -#include "components/segmentation_platform/public/result.h"
  17. #include "components/user_education/common/feature_promo_controller.h"
  18. #include "components/user_education/common/feature_promo_handle.h"
  19. #include "components/webapps/browser/banners/app_banner_manager.h"
  20. @@ -62,6 +61,10 @@
  21. #include "ui/views/widget/widget_observer.h"
  22. #include "ui/views/window/client_view.h"
  23. +#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
  24. +#include "components/segmentation_platform/public/result.h"
  25. +#endif // BUILDFLAG(GOOGLE_CHROME_BRANDING)
  26. +
  27. #if BUILDFLAG(IS_CHROMEOS_ASH)
  28. #include "ui/compositor/throughput_tracker.h"
  29. #endif