| Index: build/common.gypi
 | 
| diff --git a/build/common.gypi b/build/common.gypi
 | 
| index 753abfeb4db96db244253fbf09903e63c8cc391c..3ddb01a4b2052b970ac71ad20be596690ee79061 100644
 | 
| --- a/build/common.gypi
 | 
| +++ b/build/common.gypi
 | 
| @@ -505,25 +505,9 @@
 | 
|        # tool explicitly.
 | 
|        # See third_party/cld_2/cld_2.gyp for more information.
 | 
|        #   0: Small tables, lower accuracy
 | 
| -      #   1: Medium tables, medium accuracy
 | 
|        #   2: Large tables, high accuracy
 | 
|        'cld2_table_size%': 2,
 | 
|  
 | 
| -      # The data acquisition mode for CLD2. Possible values are:
 | 
| -      #   static:     CLD2 data is statically linked to the executable.
 | 
| -      #   standalone: CLD2 data is provided in a standalone file that is
 | 
| -      #               bundled with the executable.
 | 
| -      #   component:  CLD2 data is provided as a Chrome "component" and is
 | 
| -      #               downloaded via the component updater.
 | 
| -      #
 | 
| -      # For more information on switching the CLD2 data source, see:
 | 
| -      #   https://sites.google.com/a/chromium.org/dev/developers/how-tos/compact-language-detector-cld-data-source-configuration
 | 
| -      #
 | 
| -      # This string will be exposed in chrome://translate-internals under the
 | 
| -      # heading "CLD Data Source". This allows easy determination of which
 | 
| -      # data source the browser was built with.
 | 
| -      'cld2_data_source%': 'static',
 | 
| -
 | 
|        # Enable spell checker.
 | 
|        'enable_spellcheck%': 1,
 | 
|  
 | 
| @@ -564,12 +548,6 @@
 | 
|        # components.
 | 
|        'use_icu_alternatives_on_android%': 0,
 | 
|  
 | 
| -      # XInput2 multitouch support is enabled by default (use_xi2_mt=2).
 | 
| -      # Setting to zero value disables XI2 MT. When XI2 MT is enabled,
 | 
| -      # the input value also defines the required XI2 minor minimum version.
 | 
| -      # For example, use_xi2_mt=2 means XI2.2 or above version is required.
 | 
| -      'use_xi2_mt%': 2,
 | 
| -
 | 
|        # Use of precompiled headers on Windows.
 | 
|        #
 | 
|        # This variable may be explicitly set to 1 (enabled) or 0
 | 
| @@ -813,6 +791,7 @@
 | 
|            'enable_basic_printing%': 0,
 | 
|            'enable_print_preview%': 0,
 | 
|            'enable_session_service%': 0,
 | 
| +          'enable_spellcheck%': 0,
 | 
|            'enable_themes%': 0,
 | 
|            'enable_webrtc%': 0,
 | 
|            'notifications%': 0,
 | 
| @@ -1113,7 +1092,6 @@
 | 
|      'chromecast%': '<(chromecast)',
 | 
|      'enable_viewport%': '<(enable_viewport)',
 | 
|      'enable_hidpi%': '<(enable_hidpi)',
 | 
| -    'use_xi2_mt%':'<(use_xi2_mt)',
 | 
|      'image_loader_extension%': '<(image_loader_extension)',
 | 
|      'fastbuild%': '<(fastbuild)',
 | 
|      'dont_embed_build_metadata%': '<(dont_embed_build_metadata)',
 | 
| @@ -1186,7 +1164,6 @@
 | 
|      'enable_google_now%': '<(enable_google_now)',
 | 
|      'cld_version%': '<(cld_version)',
 | 
|      'cld2_table_size%': '<(cld2_table_size)',
 | 
| -    'cld2_data_source%': '<(cld2_data_source)',
 | 
|      'enable_captive_portal_detection%': '<(enable_captive_portal_detection)',
 | 
|      'disable_file_support%': '<(disable_file_support)',
 | 
|      'disable_ftp_support%': '<(disable_ftp_support)',
 | 
| @@ -1488,7 +1465,6 @@
 | 
|      # IPC fuzzer is disabled by default.
 | 
|      'enable_ipc_fuzzer%': 0,
 | 
|  
 | 
| -
 | 
|      # Force disable libstdc++ debug mode.
 | 
|      'disable_glibcxx_debug%': 0,
 | 
|  
 | 
| @@ -1509,6 +1485,12 @@
 | 
|      'ozone_platform_ozonex%': 0,
 | 
|      'ozone_platform_test%': 0,
 | 
|  
 | 
| +    # Whether the browser is non-native (using Views Toolkit) on Mac.
 | 
| +    'mac_views_browser%': 0,
 | 
| +
 | 
| +    # Experiment: http://crbug.com/426914
 | 
| +    'envoy%': 0,
 | 
| +
 | 
|      'conditions': [
 | 
|        ['buildtype=="Official"', {
 | 
|          # Continue to embed build meta data in Official builds, basically the
 | 
| @@ -2070,8 +2052,11 @@
 | 
|          ],
 | 
|        }],
 | 
|        ['OS=="android"', {
 | 
| -        'grit_defines': ['-t', 'android',
 | 
| -                         '-E', 'ANDROID_JAVA_TAGGED_ONLY=true'],
 | 
| +        'grit_defines': [
 | 
| +          '-t', 'android',
 | 
| +          '-E', 'ANDROID_JAVA_TAGGED_ONLY=true',
 | 
| +          '--no-output-all-resource-defines',
 | 
| +        ],
 | 
|        }],
 | 
|        ['OS=="mac" or OS=="ios"', {
 | 
|          'grit_defines': ['-D', 'scale_factors=2x'],
 | 
| @@ -2080,7 +2065,8 @@
 | 
|          'grit_defines': [
 | 
|            '-t', 'ios',
 | 
|            # iOS uses a whitelist to filter resources.
 | 
| -          '-w', '<(DEPTH)/build/ios/grit_whitelist.txt'
 | 
| +          '-w', '<(DEPTH)/build/ios/grit_whitelist.txt',
 | 
| +          '--no-output-all-resource-defines',
 | 
|          ],
 | 
|  
 | 
|          # Enable host builds when generating with ninja-ios.
 | 
| @@ -2489,7 +2475,7 @@
 | 
|            'mac_debug_optimization%': '0',   # Use -O0 unless overridden
 | 
|          }, {
 | 
|            # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.html
 | 
| -          'mac_release_optimization%': '3', # Use -O3 unless overridden
 | 
| +          'mac_release_optimization%': '2', # Use -O2 unless overridden
 | 
|            'mac_debug_optimization%': '0',   # Use -O0 unless overridden
 | 
|          }],
 | 
|          ['OS=="android"', {
 | 
| @@ -2527,9 +2513,6 @@
 | 
|          # code generated by flex (used in angle) contains that keyword.
 | 
|          # http://crbug.com/255186
 | 
|          '-Wno-deprecated-register',
 | 
| -
 | 
| -        # TODO(hans): Clean this up. Or disable with finer granularity.
 | 
| -        '-Wno-unused-local-typedef',
 | 
|        ],
 | 
|      },
 | 
|      'includes': [ 'set_clang_warning_flags.gypi', ],
 | 
| @@ -2635,9 +2618,6 @@
 | 
|        ['enable_pre_sync_backup==1', {
 | 
|          'defines': ['ENABLE_PRE_SYNC_BACKUP'],
 | 
|        }],
 | 
| -      ['use_xi2_mt!=0 and use_x11==1', {
 | 
| -        'defines': ['USE_XI2_MT=<(use_xi2_mt)'],
 | 
| -      }],
 | 
|        ['image_loader_extension==1', {
 | 
|          'defines': ['IMAGE_LOADER_EXTENSION=1'],
 | 
|        }],
 | 
| @@ -2925,11 +2905,6 @@
 | 
|        ['cld_version!=0', {
 | 
|          'defines': ['CLD_VERSION=<(cld_version)'],
 | 
|        }],
 | 
| -      ['cld_version==2', {
 | 
| -        # This is used to populate the "CLD Data Source" field in:
 | 
| -        # chrome://translate-internals
 | 
| -        'defines': ['CLD2_DATA_SOURCE=<(cld2_data_source)'],
 | 
| -      }],
 | 
|        ['enable_basic_printing==1 or enable_print_preview==1', {
 | 
|          # Convenience define for ENABLE_BASIC_PRINTING || ENABLE_PRINT_PREVIEW.
 | 
|          'defines': ['ENABLE_PRINTING=1'],
 | 
| @@ -4209,6 +4184,13 @@
 | 
|                    '-fsanitize=undefined',
 | 
|                    # -fsanitize=vptr is incompatible with -fno-rtti.
 | 
|                    '-fno-sanitize=vptr',
 | 
| +                  # Employ the experimental PBQP register allocator to avoid
 | 
| +                  # slow compilation on files with too many basic blocks.
 | 
| +                  # See http://crbug.com/426271.
 | 
| +                  '-mllvm -regalloc=pbqp',
 | 
| +                  # Speculatively use coalescing to slightly improve the code
 | 
| +                  # generated by PBQP regallocator. May increase compile time.
 | 
| +                  '-mllvm -pbqp-coalescing',
 | 
|                  ],
 | 
|                  'ldflags': [
 | 
|                    '-fsanitize=undefined',
 | 
| 
 |