| Index: build/all.gyp
 | 
| diff --git a/build/all.gyp b/build/all.gyp
 | 
| index 2813ca2c8dcbb4d51f28126d2c8847ef4e7b4e56..255a35c57eef9f26e6be5ea8f3a7f8da706ccd04 100644
 | 
| --- a/build/all.gyp
 | 
| +++ b/build/all.gyp
 | 
| @@ -74,12 +74,6 @@
 | 
|              '../content/content_shell_and_tests.gyp:content_shell_apk',
 | 
|              '<@(android_app_targets)',
 | 
|              'android_builder_tests',
 | 
| -            '../android_webview/android_webview.gyp:android_webview_apk',
 | 
| -            '../android_webview/android_webview.gyp:system_webview_apk',
 | 
| -            '../android_webview/android_webview_telemetry_shell.gyp:android_webview_telemetry_shell_apk',
 | 
| -            '../chrome/chrome.gyp:chrome_shell_apk',
 | 
| -            '../chrome/chrome.gyp:chrome_sync_shell_apk',
 | 
| -            '../remoting/remoting.gyp:remoting_apk',
 | 
|              '../tools/telemetry/telemetry.gyp:*#host',
 | 
|              # TODO(nyquist) This should instead by a target for sync when all of
 | 
|              # the sync-related code for Android has been upstreamed.
 | 
| @@ -87,6 +81,17 @@
 | 
|              '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_javalib',
 | 
|            ],
 | 
|            'conditions': [
 | 
| +            ['chromecast==0', {
 | 
| +              'dependencies': [
 | 
| +                '../android_webview/android_webview.gyp:android_webview_apk',
 | 
| +                '../android_webview/android_webview.gyp:system_webview_apk',
 | 
| +                '../android_webview/android_webview_shell.gyp:android_webview_shell_apk',
 | 
| +                '../android_webview/android_webview_telemetry_shell.gyp:android_webview_telemetry_shell_apk',
 | 
| +                '../chrome/chrome.gyp:chrome_shell_apk',
 | 
| +                '../chrome/chrome.gyp:chrome_sync_shell_apk',
 | 
| +                '../remoting/remoting.gyp:remoting_apk',
 | 
| +              ],
 | 
| +            }],
 | 
|              ['target_arch == "arm" or target_arch == "arm64"', {
 | 
|                'dependencies': [
 | 
|                  # The relocation packer only works on ARM or ARM64.
 | 
| @@ -101,16 +106,16 @@
 | 
|              '../sync/sync.gyp:*',
 | 
|            ],
 | 
|          }],
 | 
| -        ['OS!="ios" and OS!="android"', {
 | 
| +        ['OS!="ios" and OS!="android" and chromecast==0', {
 | 
|            'dependencies': [
 | 
|              '../third_party/re2/re2.gyp:re2',
 | 
|              '../chrome/chrome.gyp:*',
 | 
|              '../chrome/tools/profile_reset/jtl_compiler.gyp:*',
 | 
|              '../cc/blink/cc_blink_tests.gyp:*',
 | 
|              '../cc/cc_tests.gyp:*',
 | 
| -            '../device/bluetooth/bluetooth.gyp:*',
 | 
| -            '../device/device_tests.gyp:*',
 | 
|              '../device/usb/usb.gyp:*',
 | 
| +            '../extensions/extensions.gyp:*',
 | 
| +            '../extensions/extensions_tests.gyp:*',
 | 
|              '../gin/gin.gyp:*',
 | 
|              '../gpu/gpu.gyp:*',
 | 
|              '../gpu/tools/tools.gyp:*',
 | 
| @@ -150,6 +155,12 @@
 | 
|              '<(libjpeg_gyp_path):*',
 | 
|            ],
 | 
|          }],
 | 
| +        ['OS!="ios"', {
 | 
| +          'dependencies': [
 | 
| +            '../device/bluetooth/bluetooth.gyp:*',
 | 
| +            '../device/device_tests.gyp:*',
 | 
| +          ],
 | 
| +        }],
 | 
|          ['use_openssl==0 and (OS=="mac" or OS=="ios" or OS=="win")', {
 | 
|            'dependencies': [
 | 
|              '../third_party/nss/nss.gyp:*',
 | 
| @@ -170,7 +181,6 @@
 | 
|          ['OS=="linux"', {
 | 
|            'dependencies': [
 | 
|              '../courgette/courgette.gyp:*',
 | 
| -            '../dbus/dbus.gyp:*',
 | 
|              '../sandbox/sandbox.gyp:*',
 | 
|            ],
 | 
|            'conditions': [
 | 
| @@ -184,6 +194,11 @@
 | 
|                  '../tools/ipc_fuzzer/ipc_fuzzer.gyp:*',
 | 
|                ],
 | 
|              }],
 | 
| +            ['use_dbus==1', {
 | 
| +              'dependencies': [
 | 
| +                '../dbus/dbus.gyp:*',
 | 
| +              ],
 | 
| +            }],
 | 
|            ],
 | 
|          }],
 | 
|          ['chromecast==1', {
 | 
| @@ -263,7 +278,7 @@
 | 
|              '../google_apis/gcm/gcm.gyp:*',
 | 
|            ],
 | 
|          }],
 | 
| -        ['chromeos==1 or OS=="linux" or OS=="win" or OS=="mac"', {
 | 
| +        ['(chromeos==1 or OS=="linux" or OS=="win" or OS=="mac") and chromecast==0', {
 | 
|            'dependencies': [
 | 
|              '../extensions/shell/app_shell.gyp:*',
 | 
|            ],
 | 
| @@ -315,19 +330,11 @@
 | 
|            'dependencies': [
 | 
|              '../cc/blink/cc_blink_tests.gyp:cc_blink_unittests',
 | 
|              '../cc/cc_tests.gyp:cc_unittests',
 | 
| -            '../chrome/chrome.gyp:browser_tests',
 | 
| -            '../chrome/chrome.gyp:chromedriver_tests',
 | 
| -            '../chrome/chrome.gyp:chromedriver_unittests',
 | 
| -            '../chrome/chrome.gyp:interactive_ui_tests',
 | 
| -            '../chrome/chrome.gyp:sync_integration_tests',
 | 
| -            '../chrome/chrome.gyp:unit_tests',
 | 
|              '../cloud_print/cloud_print.gyp:cloud_print_unittests',
 | 
|              '../content/content_shell_and_tests.gyp:content_browsertests',
 | 
|              '../content/content_shell_and_tests.gyp:content_shell',
 | 
|              '../content/content_shell_and_tests.gyp:content_unittests',
 | 
|              '../device/device_tests.gyp:device_unittests',
 | 
| -            '../extensions/extensions_tests.gyp:extensions_browsertests',
 | 
| -            '../extensions/extensions_tests.gyp:extensions_unittests',
 | 
|              '../gin/gin.gyp:gin_unittests',
 | 
|              '../google_apis/google_apis.gyp:google_apis_unittests',
 | 
|              '../gpu/gles2_conform_support/gles2_conform_support.gyp:gles2_conform_support',
 | 
| @@ -348,6 +355,18 @@
 | 
|              '../tools/telemetry/telemetry.gyp:*',
 | 
|            ],
 | 
|          }],
 | 
| +        ['OS!="ios" and OS!="android" and chromecast==0', {
 | 
| +          'dependencies': [
 | 
| +            '../chrome/chrome.gyp:browser_tests',
 | 
| +            '../chrome/chrome.gyp:chromedriver_tests',
 | 
| +            '../chrome/chrome.gyp:chromedriver_unittests',
 | 
| +            '../chrome/chrome.gyp:interactive_ui_tests',
 | 
| +            '../chrome/chrome.gyp:sync_integration_tests',
 | 
| +            '../chrome/chrome.gyp:unit_tests',
 | 
| +            '../extensions/extensions_tests.gyp:extensions_browsertests',
 | 
| +            '../extensions/extensions_tests.gyp:extensions_unittests',
 | 
| +          ],
 | 
| +        }],
 | 
|          ['OS=="win"', {
 | 
|            'dependencies': [
 | 
|              '../chrome/chrome.gyp:app_installer',
 | 
| @@ -406,10 +425,14 @@
 | 
|          }],
 | 
|          ['OS=="linux"', {
 | 
|            'dependencies': [
 | 
| -            '../dbus/dbus.gyp:dbus_unittests',
 | 
|              '../sandbox/sandbox.gyp:sandbox_linux_unittests',
 | 
|            ],
 | 
|          }],
 | 
| +        ['OS=="linux" and use_dbus==1', {
 | 
| +          'dependencies': [
 | 
| +            '../dbus/dbus.gyp:dbus_unittests',
 | 
| +          ],
 | 
| +        }],
 | 
|          ['OS=="mac"', {
 | 
|            'dependencies': [
 | 
|              '../ui/app_list/app_list.gyp:app_list_unittests',
 | 
| @@ -436,6 +459,10 @@
 | 
|              '../ui/app_list/app_list.gyp:app_list_unittests',
 | 
|              '../ui/aura/aura.gyp:aura_unittests',
 | 
|              '../ui/compositor/compositor.gyp:compositor_unittests',
 | 
| +          ],
 | 
| +        }],
 | 
| +        ['use_aura==1 and chromecast==0', {
 | 
| +          'dependencies': [
 | 
|              '../ui/keyboard/keyboard.gyp:keyboard_unittests',
 | 
|              '../ui/views/views.gyp:views_unittests',
 | 
|            ],
 | 
| @@ -468,7 +495,7 @@
 | 
|    ],
 | 
|    'conditions': [
 | 
|      # TODO(GYP): make gn_migration.gypi work unconditionally.
 | 
| -    ['OS=="linux" and target_arch=="x64" and chromeos==0 and chromecast==0 and disable_nacl==0', {
 | 
| +    ['OS=="mac" or OS=="win" or (OS=="linux" and target_arch=="x64" and chromecast==0)', {
 | 
|        'includes': [
 | 
|          'gn_migration.gypi',
 | 
|        ],
 | 
| @@ -512,14 +539,14 @@
 | 
|              }],
 | 
|              ['OS=="linux"', {
 | 
|                'dependencies': [
 | 
| -                '../breakpad/breakpad.gyp:dump_syms',
 | 
| +                '../breakpad/breakpad.gyp:dump_syms#host',
 | 
|                ],
 | 
|              }],
 | 
|            ],
 | 
|          }, # target_name: blink_tests
 | 
|        ],
 | 
|      }], # OS!=ios
 | 
| -    ['OS!="ios" and OS!="android"', {
 | 
| +    ['OS!="ios" and OS!="android" and chromecast==0', {
 | 
|        'targets': [
 | 
|          {
 | 
|            'target_name': 'chromium_builder_nacl_win_integration',
 | 
| @@ -557,6 +584,7 @@
 | 
|              ['OS=="win"', {
 | 
|                'dependencies': [
 | 
|                  '../chrome/chrome.gyp:crash_service',
 | 
| +                '../gpu/gpu.gyp:angle_perftests',
 | 
|                ],
 | 
|              }],
 | 
|              ['OS=="win" and target_arch=="ia32"', {
 | 
| @@ -759,7 +787,6 @@
 | 
|            'target_name': 'android_builder_tests',
 | 
|            'type': 'none',
 | 
|            'dependencies': [
 | 
| -            '../android_webview/android_webview.gyp:android_webview_unittests',
 | 
|              '../base/android/jni_generator/jni_generator.gyp:jni_generator_tests',
 | 
|              '../base/base.gyp:base_unittests',
 | 
|              '../breakpad/breakpad.gyp:breakpad_unittests_deps',
 | 
| @@ -774,10 +801,10 @@
 | 
|              '../cc/blink/cc_blink_tests.gyp:cc_blink_unittests',
 | 
|              '../cc/cc_tests.gyp:cc_perftests_apk',
 | 
|              '../cc/cc_tests.gyp:cc_unittests',
 | 
| -            '../chrome/chrome.gyp:unit_tests',
 | 
|              '../components/components_tests.gyp:components_unittests',
 | 
|              '../content/content_shell_and_tests.gyp:content_browsertests',
 | 
|              '../content/content_shell_and_tests.gyp:content_gl_tests',
 | 
| +            '../content/content_shell_and_tests.gyp:content_junit_tests',
 | 
|              '../content/content_shell_and_tests.gyp:chromium_linker_test_apk',
 | 
|              '../content/content_shell_and_tests.gyp:content_shell_test_apk',
 | 
|              '../content/content_shell_and_tests.gyp:content_unittests',
 | 
| @@ -803,16 +830,10 @@
 | 
|              '../ui/events/events.gyp:events_unittests',
 | 
|              '../ui/touch_selection/ui_touch_selection.gyp:ui_touch_selection_unittests',
 | 
|              # Unit test bundles packaged as an apk.
 | 
| -            '../android_webview/android_webview.gyp:android_webview_test_apk',
 | 
| -            '../android_webview/android_webview.gyp:android_webview_unittests_apk',
 | 
|              '../base/base.gyp:base_unittests_apk',
 | 
|              '../cc/blink/cc_blink_tests.gyp:cc_blink_unittests_apk',
 | 
|              '../cc/cc_tests.gyp:cc_unittests_apk',
 | 
| -            '../chrome/chrome.gyp:chrome_shell_test_apk',
 | 
| -            '../chrome/chrome.gyp:chrome_sync_shell_test_apk',
 | 
| -            '../chrome/chrome.gyp:chrome_shell_uiautomator_tests',
 | 
| -            '../chrome/chrome.gyp:chromedriver_webview_shell_apk',
 | 
| -            '../chrome/chrome.gyp:unit_tests_apk',
 | 
| +            '../components/components_tests.gyp:components_browsertests_apk',
 | 
|              '../components/components_tests.gyp:components_unittests_apk',
 | 
|              '../content/content_shell_and_tests.gyp:content_browsertests_apk',
 | 
|              '../content/content_shell_and_tests.gyp:content_gl_tests_apk',
 | 
| @@ -835,6 +856,21 @@
 | 
|              '../ui/touch_selection/ui_touch_selection.gyp:ui_touch_selection_unittests_apk',
 | 
|            ],
 | 
|            'conditions': [
 | 
| +            ['chromecast==0', {
 | 
| +              'dependencies': [
 | 
| +                '../android_webview/android_webview.gyp:android_webview_unittests',
 | 
| +                '../chrome/chrome.gyp:unit_tests',
 | 
| +                # Unit test bundles packaged as an apk.
 | 
| +                '../android_webview/android_webview.gyp:android_webview_test_apk',
 | 
| +                '../android_webview/android_webview.gyp:android_webview_unittests_apk',
 | 
| +                '../chrome/chrome.gyp:chrome_junit_tests',
 | 
| +                '../chrome/chrome.gyp:chrome_shell_test_apk',
 | 
| +                '../chrome/chrome.gyp:chrome_sync_shell_test_apk',
 | 
| +                '../chrome/chrome.gyp:chrome_shell_uiautomator_tests',
 | 
| +                '../chrome/chrome.gyp:chromedriver_webview_shell_apk',
 | 
| +                '../chrome/chrome.gyp:unit_tests_apk',
 | 
| +              ],
 | 
| +            }],
 | 
|              ['enable_webrtc==1 and "<(libpeer_target_type)"=="static_library"', {
 | 
|                'dependencies': [
 | 
|                  '../components/devtools_bridge.gyp:devtools_bridge_tests_apk',
 | 
| @@ -1160,14 +1196,10 @@
 | 
|          ['branding=="Chrome"', {
 | 
|            'targets': [
 | 
|              {
 | 
| -              'target_name': 'chrome_official_builder',
 | 
| +              'target_name': 'chrome_official_builder_no_unittests',
 | 
|                'type': 'none',
 | 
|                'dependencies': [
 | 
| -                '../base/base.gyp:base_unittests',
 | 
|                  '../chrome/chrome.gyp:app_installer',
 | 
| -                '../chrome/chrome.gyp:app_installer_unittests',
 | 
| -                '../chrome/chrome.gyp:browser_tests',
 | 
| -                '../chrome/chrome.gyp:sync_integration_tests',
 | 
|                  '../chrome/chrome.gyp:crash_service',
 | 
|                  '../chrome/chrome.gyp:gcapi_dll',
 | 
|                  '../chrome/chrome.gyp:pack_policy_templates',
 | 
| @@ -1175,19 +1207,8 @@
 | 
|                  '../cloud_print/cloud_print.gyp:cloud_print',
 | 
|                  '../courgette/courgette.gyp:courgette',
 | 
|                  '../courgette/courgette.gyp:courgette64',
 | 
| -                '../ipc/ipc.gyp:ipc_tests',
 | 
| -                '../media/media.gyp:media_unittests',
 | 
| -                '../net/net.gyp:net_unittests_run',
 | 
| -                '../printing/printing.gyp:printing_unittests',
 | 
|                  '../remoting/remoting.gyp:remoting_webapp',
 | 
| -                '../sql/sql.gyp:sql_unittests',
 | 
| -                '../sync/sync.gyp:sync_unit_tests',
 | 
|                  '../third_party/widevine/cdm/widevine_cdm.gyp:widevinecdmadapter',
 | 
| -                '../ui/base/ui_base_tests.gyp:ui_base_unittests',
 | 
| -                '../ui/gfx/gfx_tests.gyp:gfx_unittests',
 | 
| -                '../ui/touch_selection/ui_touch_selection.gyp:ui_touch_selection_unittests',
 | 
| -                '../ui/views/views.gyp:views_unittests',
 | 
| -                '../url/url.gyp:url_unittests',
 | 
|                ],
 | 
|                'conditions': [
 | 
|                  ['target_arch=="ia32"', {
 | 
| @@ -1202,6 +1223,27 @@
 | 
|                    ],
 | 
|                  }], # component != "shared_library"
 | 
|                ]
 | 
| +            }, {
 | 
| +              'target_name': 'chrome_official_builder',
 | 
| +              'type': 'none',
 | 
| +              'dependencies': [
 | 
| +	        'chrome_official_builder_no_unittests',
 | 
| +                '../base/base.gyp:base_unittests',
 | 
| +		'../chrome/chrome.gyp:app_installer_unittests',
 | 
| +                '../chrome/chrome.gyp:browser_tests',
 | 
| +                '../chrome/chrome.gyp:sync_integration_tests',
 | 
| +                '../ipc/ipc.gyp:ipc_tests',
 | 
| +                '../media/media.gyp:media_unittests',
 | 
| +                '../net/net.gyp:net_unittests_run',
 | 
| +                '../printing/printing.gyp:printing_unittests',
 | 
| +                '../sql/sql.gyp:sql_unittests',
 | 
| +                '../sync/sync.gyp:sync_unit_tests',
 | 
| +                '../ui/base/ui_base_tests.gyp:ui_base_unittests',
 | 
| +                '../ui/gfx/gfx_tests.gyp:gfx_unittests',
 | 
| +                '../ui/touch_selection/ui_touch_selection.gyp:ui_touch_selection_unittests',
 | 
| +                '../ui/views/views.gyp:views_unittests',
 | 
| +                '../url/url.gyp:url_unittests',
 | 
| +              ],
 | 
|              },
 | 
|            ], # targets
 | 
|          }], # branding=="Chrome"
 | 
| @@ -1215,10 +1257,6 @@
 | 
|            'dependencies': [
 | 
|              '../cc/blink/cc_blink_tests.gyp:cc_blink_unittests',
 | 
|              '../cc/cc_tests.gyp:cc_unittests',
 | 
| -            '../chrome/chrome.gyp:browser_tests',
 | 
| -            '../chrome/chrome.gyp:chrome',
 | 
| -            '../chrome/chrome.gyp:interactive_ui_tests',
 | 
| -            '../chrome/chrome.gyp:unit_tests',
 | 
|              '../components/components_tests.gyp:components_unittests',
 | 
|              '../content/content_shell_and_tests.gyp:content_browsertests',
 | 
|              '../content/content_shell_and_tests.gyp:content_unittests',
 | 
| @@ -1236,12 +1274,8 @@
 | 
|              '../ui/events/events.gyp:*',
 | 
|              '../ui/gfx/gfx_tests.gyp:gfx_unittests',
 | 
|              '../ui/keyboard/keyboard.gyp:*',
 | 
| -            '../ui/message_center/message_center.gyp:*',
 | 
|              '../ui/snapshot/snapshot.gyp:snapshot_unittests',
 | 
|              '../ui/touch_selection/ui_touch_selection.gyp:ui_touch_selection_unittests',
 | 
| -            '../ui/views/examples/examples.gyp:views_examples_with_content_exe',
 | 
| -            '../ui/views/views.gyp:views',
 | 
| -            '../ui/views/views.gyp:views_unittests',
 | 
|              '../ui/wm/wm.gyp:*',
 | 
|              'blink_tests',
 | 
|            ],
 | 
| @@ -1283,6 +1317,18 @@
 | 
|                  '../ui/ozone/demo/ozone_demos.gyp:*',
 | 
|                ],
 | 
|              }],
 | 
| +            ['chromecast==0', {
 | 
| +              'dependencies': [
 | 
| +                '../chrome/chrome.gyp:browser_tests',
 | 
| +                '../chrome/chrome.gyp:chrome',
 | 
| +                '../chrome/chrome.gyp:interactive_ui_tests',
 | 
| +                '../chrome/chrome.gyp:unit_tests',
 | 
| +                '../ui/message_center/message_center.gyp:*',
 | 
| +                '../ui/views/examples/examples.gyp:views_examples_with_content_exe',
 | 
| +                '../ui/views/views.gyp:views',
 | 
| +                '../ui/views/views.gyp:views_unittests',
 | 
| +              ],
 | 
| +            }],
 | 
|            ],
 | 
|          },
 | 
|        ],  # targets
 | 
| @@ -1294,14 +1340,20 @@
 | 
|            'type': 'none',
 | 
|            'dependencies': [
 | 
|              '../base/base.gyp:base_unittests_run',
 | 
| -            '../chrome/chrome.gyp:browser_tests_run',
 | 
| -            '../chrome/chrome.gyp:interactive_ui_tests_run',
 | 
| -            '../chrome/chrome.gyp:sync_integration_tests_run',
 | 
| -            '../chrome/chrome.gyp:unit_tests_run',
 | 
|              '../content/content_shell_and_tests.gyp:content_browsertests_run',
 | 
|              '../content/content_shell_and_tests.gyp:content_unittests_run',
 | 
|              '../net/net.gyp:net_unittests_run',
 | 
|            ],
 | 
| +          'conditions': [
 | 
| +            ['chromecast==0', {
 | 
| +              'dependencies': [
 | 
| +                '../chrome/chrome.gyp:browser_tests_run',
 | 
| +                '../chrome/chrome.gyp:interactive_ui_tests_run',
 | 
| +                '../chrome/chrome.gyp:sync_integration_tests_run',
 | 
| +                '../chrome/chrome.gyp:unit_tests_run',
 | 
| +              ],
 | 
| +            }],
 | 
| +          ],
 | 
|          }, # target_name: chromium_swarm_tests
 | 
|        ],
 | 
|      }],
 | 
| 
 |