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

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: rebase to satiate trybots 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
« no previous file with comments | « chrome/common/safe_browsing/safebrowsing_messages.h ('k') | chrome/utility/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 e622f4eecd037522e95d2e51c227362ec74d0154..c9540ba95e129b6ed809db47c02a3f616218c91b 100644
--- a/chrome/renderer/BUILD.gn
+++ b/chrome/renderer/BUILD.gn
@@ -79,23 +79,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) {
« no previous file with comments | « chrome/common/safe_browsing/safebrowsing_messages.h ('k') | chrome/utility/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698