diff options
Diffstat (limited to 'chrome/tools')
-rwxr-xr-x | chrome/tools/build/repack_locales.py | 8 |
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': |