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

Unified Diff: build/config/features.gni

Issue 343233004: Add chrome/renderer to the GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: work around lack of hunspell Created 6 years, 6 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 | « build/config/BUILD.gn ('k') | chrome/chrome_renderer.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/features.gni
diff --git a/build/config/features.gni b/build/config/features.gni
index 79fc222d5c0df124a14b83e52c7faff33f98b561..ccfec7c7bdd663319e46b66058f924067b6a2bdd 100644
--- a/build/config/features.gni
+++ b/build/config/features.gni
@@ -16,6 +16,9 @@ declare_args() {
enable_mdns = is_win || is_linux
enable_plugins = !is_android || !is_ios
+
+ # Enables Native Client support.
+ enable_nacl = (!is_ios && !is_android)
}
# Additional dependent variables -----------------------------------------------
@@ -72,3 +75,16 @@ enable_speech_input = true
use_dbus = is_linux
enable_extensions = (!is_android && !is_ios)
+
+# Variable safe_browsing is used to control the build time configuration for
+# safe browsing feature. Safe browsing can be compiled in 3 different levels: 0
+# disables it, 1 enables it fully, and 2 enables only UI and reporting features
+# without enabling phishing and malware detection. This is useful to integrate
+# a third party phishing/malware detection to existing safe browsing logic.
+if (is_android) {
+ safe_browsing_mode = 2
+} else if (is_ios) {
+ safe_browsing_mode = 0
+} else {
+ safe_browsing_mode = 1
+}
« no previous file with comments | « build/config/BUILD.gn ('k') | chrome/chrome_renderer.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698