summaryrefslogtreecommitdiffstats
path: root/unbundle-do-not-use-ZipAnalyzer-traits-header.patch
blob: 7397401d50753ef05bf7565e5b09aecdf53deb2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
From c8b965be5b61c2412df938e1feb380b69bd92ee9 Mon Sep 17 00:00:00 2001
From: Stephan Hartmann <stha09@googlemail.com>
Date: Thu, 6 Apr 2023 07:15:03 +0000
Subject: [PATCH] [unbundle] do not use ZipAnalyzer traits header

It is enough to include chrome/common/safe_browsing/archive_analyzer_results.h.

Bug: None
Change-Id: Ia63a66b77c073fa4fdb8470db34b4c24722293cc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4373706
Reviewed-by: Daniel Rubery <drubery@chromium.org>
Commit-Queue: Stephan Hartmann <stha09@googlemail.com>
Cr-Commit-Position: refs/heads/main@{#1127041}
---
 chrome/services/file_util/public/mojom/BUILD.gn   | 3 ++-
 chrome/services/file_util/safe_archive_analyzer.h | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/chrome/services/file_util/public/mojom/BUILD.gn b/chrome/services/file_util/public/mojom/BUILD.gn
index b9e80cc748e..461d2d00b5e 100644
--- a/chrome/services/file_util/public/mojom/BUILD.gn
+++ b/chrome/services/file_util/public/mojom/BUILD.gn
@@ -55,7 +55,8 @@ mojom("mojom") {
           cpp = "::safe_browsing::ArchiveAnalyzerResults"
         },
       ]
-      traits_headers = [ "//chrome/common/safe_browsing/zip_analyzer.h" ]
+      traits_headers =
+          [ "//chrome/common/safe_browsing/archive_analyzer_results.h" ]
       traits_private_headers = [ "safe_archive_analyzer_param_traits.h" ]
       traits_public_deps = [
         "//chrome/common/safe_browsing:proto",
diff --git a/chrome/services/file_util/safe_archive_analyzer.h b/chrome/services/file_util/safe_archive_analyzer.h
index 62307b87839..0231205377c 100644
--- a/chrome/services/file_util/safe_archive_analyzer.h
+++ b/chrome/services/file_util/safe_archive_analyzer.h
@@ -7,6 +7,7 @@
 
 #include "chrome/common/safe_browsing/archive_analyzer_results.h"
 #include "chrome/common/safe_browsing/rar_analyzer.h"
+#include "chrome/common/safe_browsing/zip_analyzer.h"
 #include "chrome/services/file_util/public/mojom/safe_archive_analyzer.mojom.h"
 #include "mojo/public/cpp/bindings/remote.h"