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

Unified Diff: chrome/renderer/BUILD.gn

Issue 397853002: Refactor safe-browsing build-config definitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup gn files Created 6 years, 5 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
Index: chrome/renderer/BUILD.gn
diff --git a/chrome/renderer/BUILD.gn b/chrome/renderer/BUILD.gn
index 51bf2ea47c4138afd94b9c94ada2b3711ca6b1f7..e6157706a7bf0fe76eb2091764dd0536ecd6db3d 100644
--- a/chrome/renderer/BUILD.gn
+++ b/chrome/renderer/BUILD.gn
@@ -74,23 +74,18 @@ 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,
".", "..")
- 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) {

Powered by Google App Engine
This is Rietveld 408576698