Files
cef/patch/patches/chrome_browser_safe_browsing.patch
Marshall Greenblatt b36241da76 Fix fatal error: ntp_background.pb.h file not found
Fixes the following Official build compile error on MacOS:

FAILED: obj/chrome/browser/safe_browsing/safe_browsing/settings_reset_prompt_model.o
In file included from ../../chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model.cc:5:
In file included from ../../chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model.h:19:
In file included from ../../chrome/browser/profile_resetter/profile_resetter.h:22:
In file included from ../../chrome/browser/search/instant_service.h:21:
In file included from ../../chrome/browser/search/background/ntp_background_service.h:15:
../../chrome/browser/search/background/ntp_background_data.h:10:10: fatal error: 'chrome/browser/search/background/ntp_background.pb.h' file not found
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
2021-04-05 11:49:38 -04:00

25 lines
860 B
Diff

diff --git chrome/browser/safe_browsing/BUILD.gn chrome/browser/safe_browsing/BUILD.gn
index ae8aef3a076c..d344ddcf3953 100644
--- chrome/browser/safe_browsing/BUILD.gn
+++ chrome/browser/safe_browsing/BUILD.gn
@@ -23,6 +23,7 @@ static_library("safe_browsing") {
"//chrome/common:constants",
"//components/browser_sync",
"//components/enterprise/common:strings",
+ "//components/gcm_driver:gcm_buildflags",
"//components/keyed_service/content",
"//components/language/core/browser",
"//components/page_info",
@@ -66,7 +67,10 @@ static_library("safe_browsing") {
"settings_reset_prompt/settings_reset_prompt_util_win.h",
]
}
- deps += [ "//extensions/browser" ]
+ deps += [
+ "//chrome/browser:ntp_background_proto",
+ "//extensions/browser",
+ ]
}
if (safe_browsing_mode != 0) {