Exclude ProtectorService code from Android build.
The change adds a ENABLE_PROTECTOR_SERVICE condition to exclude
ProtectorService and related code. I have introduced protector_utils.h which
contains methods used by keyword_table.cc to sign and verify keywords.
Note: ChromeOS also excludes protector from the tests
(chrome_tests.gypi), but disables ProtectorService using a command line
switch.
BUG=117407
TEST=
Review URL: http://codereview.chromium.org/9863047
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129910 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/build/common.gypi b/build/common.gypi
index 057f1489..c0b770d 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -262,6 +262,9 @@
# Enable plug-in installation by default.
'enable_plugin_installation%': 1,
+ # Enable protector service by default.
+ 'enable_protector_service%': 1,
+
# Specifies whether to use canvas_skia.cc in place of platform
# specific implementations of gfx::Canvas. Affects text drawing in the
# Chrome UI.
@@ -397,6 +400,12 @@
'enable_plugin_installation%': 1,
}],
+ ['OS=="android"', {
+ 'enable_protector_service%': 0,
+ }, {
+ 'enable_protector_service%': 1,
+ }],
+
# linux_use_gold_binary: whether to use the binary checked into
# third_party/gold.
['OS=="linux"', {
@@ -487,6 +496,7 @@
'enable_web_intents%': '<(enable_web_intents)',
'enable_web_intents_tag%': '<(enable_web_intents_tag)',
'enable_plugin_installation%': '<(enable_plugin_installation)',
+ 'enable_protector_service%': '<(enable_protector_service)',
'enable_themes%': '<(enable_themes)',
'linux_use_gold_binary%': '<(linux_use_gold_binary)',
'linux_use_gold_flags%': '<(linux_use_gold_flags)',
@@ -1359,6 +1369,9 @@
['enable_plugin_installation==1', {
'defines': ['ENABLE_PLUGIN_INSTALLATION=1'],
}],
+ ['enable_protector_service==1', {
+ 'defines': ['ENABLE_PROTECTOR_SERVICE=1'],
+ }],
['enable_themes==1', {
'defines': ['ENABLE_THEMES=1'],
}],