summaryrefslogtreecommitdiffstats
path: root/chrome/tools
diff options
context:
space:
mode:
authorjiangj@opera.com <jiangj@opera.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-13 15:56:34 +0000
committerjiangj@opera.com <jiangj@opera.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-13 15:56:34 +0000
commit24ee6a4b70a75c3893ab7cff24b6059062b7d8ff (patch)
tree15d8ffff799a581a39088a35b2bf03f17a512597 /chrome/tools
parent75491984124be8cd92f3e86bab8c4a0d53526d66 (diff)
downloadchromium_src-24ee6a4b70a75c3893ab7cff24b6059062b7d8ff.zip
chromium_src-24ee6a4b70a75c3893ab7cff24b6059062b7d8ff.tar.gz
chromium_src-24ee6a4b70a75c3893ab7cff24b6059062b7d8ff.tar.bz2
Fix ui_unittests building with enable_autofill_dialog=0
Review URL: https://codereview.chromium.org/178193032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270107 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools')
-rwxr-xr-xchrome/tools/build/repack_locales.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/tools/build/repack_locales.py b/chrome/tools/build/repack_locales.py
index 3acaa04..6f5f7c2 100755
--- a/chrome/tools/build/repack_locales.py
+++ b/chrome/tools/build/repack_locales.py
@@ -30,6 +30,7 @@ INT_DIR = None
OS = None
USE_ASH = False
+ENABLE_AUTOFILL_DIALOG = False
WHITELIST = None
@@ -108,7 +109,7 @@ def calc_inputs(locale):
inputs.append(os.path.join(SHARE_INT_DIR, 'extensions', 'strings',
'extensions_strings_%s.pak' % locale))
- if OS != 'ios' and OS != 'android':
+ if ENABLE_AUTOFILL_DIALOG and OS != 'ios' and OS != 'android':
#e.g. '<(SHARED_INTERMEDIATE_DIR)/third_party/libaddressinput/
# libaddressinput_strings_da.pak',
inputs.append(os.path.join(SHARE_INT_DIR, 'third_party', 'libaddressinput',
@@ -172,6 +173,7 @@ def DoMain(argv):
global OS
global USE_ASH
global WHITELIST
+ global ENABLE_AUTOFILL_DIALOG
global EXTRA_INPUT_FILES
parser = optparse.OptionParser("usage: %prog [options] locales")
@@ -196,6 +198,9 @@ def DoMain(argv):
help="Whether to include ash strings")
parser.add_option("--whitelist", action="store", help="Full path to the "
"whitelist used to filter output pak file resource IDs")
+ parser.add_option("--enable-autofill-dialog", action="store",
+ dest="enable_autofill_dialog",
+ help="Whether to include strings for autofill dialog")
options, locales = parser.parse_args(argv)
if not locales:
@@ -211,6 +216,7 @@ def DoMain(argv):
OS = options.os
USE_ASH = options.use_ash == '1'
WHITELIST = options.whitelist
+ ENABLE_AUTOFILL_DIALOG = options.enable_autofill_dialog == '1'
if not OS:
if sys.platform == 'darwin':