Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8430)

Unified Diff: chrome/renderer/BUILD.gn

Issue 1081403002: Refactor safe-browsing build-config definitions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again to fix collision Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/safe_browsing/safebrowsing_messages.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/BUILD.gn
diff --git a/chrome/renderer/BUILD.gn b/chrome/renderer/BUILD.gn
index 312a879d9eca3c01df5b6eac76d342a63bab8a5f..2fe4a66cc44399616174e562b7f943e57173394c 100644
--- a/chrome/renderer/BUILD.gn
+++ b/chrome/renderer/BUILD.gn
@@ -86,26 +86,20 @@ static_library("renderer") {
]
}
- if (safe_browsing_mode == 1) {
- sources += rebase_path(gypi_values.chrome_renderer_safe_browsing_sources,
+ if (safe_browsing_mode != 0) {
+ sources += rebase_path(gypi_values.chrome_renderer_basic_safe_browsing_sources,
".",
"..")
- sources +=
- rebase_path(gypi_values.chrome_renderer_basic_safe_browsing_sources,
- ".",
- "..")
- defines += [ "FULL_SAFE_BROWSING" ]
- deps += [
- "//chrome/common/safe_browsing:proto",
- "//third_party/smhasher:murmurhash3",
- ]
- }
- if (safe_browsing_mode == 2) {
- sources +=
- rebase_path(gypi_values.chrome_renderer_basic_safe_browsing_sources,
- ".",
- "..")
- defines += [ "MOBILE_SAFE_BROWSING" ]
+ if (safe_browsing_mode == 1) {
+ sources +=
+ rebase_path(gypi_values.chrome_renderer_safe_browsing_sources,
+ ".",
+ "..")
+ deps += [
+ "//chrome/common/safe_browsing:proto",
+ "//third_party/smhasher:murmurhash3",
+ ]
+ }
}
if (enable_extensions) {
« no previous file with comments | « chrome/common/safe_browsing/safebrowsing_messages.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698