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

Unified Diff: build/common.gypi

Issue 397853002: Refactor safe-browsing build-config definitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to pick up safe_browsing_resource_throttle_factory change. 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: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index 177cc99cbd7b1613336b59084eb5a73e7729f194..4f619c282a3b5b82ae9949fe4e894a2489a68f32 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -2852,6 +2852,25 @@
['video_hole==1', {
'defines': ['VIDEO_HOLE=1'],
}],
+
+ # SAFE_BROWSING_SERVICE - browser manages a safe-browsing service.
+ # SAFE_BROWSING_DATABASE - service manages a local database.
+ # SAFE_BROWSING_CSD - enable client-side phishing detection.
+ ['safe_browsing==1', {
+ 'defines': [
+ 'FULL_SAFE_BROWSING',
+ 'SAFE_BROWSING_CSD',
+ 'SAFE_BROWSING_DATABASE',
+ 'SAFE_BROWSING_SERVICE',
+ ],
+ }],
+ # TODO(shess): I believe this case is no longer in use.
mattm 2014/07/31 00:51:43 iOS build is a mystery to me, but I thought they s
Lei Zhang 2014/07/31 00:54:45 Isn't it 0? See build/common.gypi:762.
mattm 2014/07/31 00:59:44 They must be overriding it somewhere in the intern
Scott Hess - ex-Googler 2014/07/31 20:50:14 IMHO, anything people rely on in the Chromium tree
+ ['safe_browsing==2', {
+ 'defines': [
+ 'MOBILE_SAFE_BROWSING',
+ 'SAFE_BROWSING_SERVICE',
+ ],
+ }],
], # conditions for 'target_defaults'
'target_conditions': [
['<(use_openssl)==1', {
« no previous file with comments | « no previous file | build/config/BUILD.gn » ('j') | chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698