Bundle core applicatons in the shell.
For release and official build, core mojo applicatons are bundled in the
shell.
This allows to greatly reduce the time needed for the first run. After
this, application are updated from the network.
R=etiennej@chromium.org
Review URL: https://codereview.chromium.org/1364243002 .
diff --git a/shell/BUILD.gn b/shell/BUILD.gn
index cf4e187..deb46a4 100644
--- a/shell/BUILD.gn
+++ b/shell/BUILD.gn
@@ -226,6 +226,8 @@
"android/native_viewport_application_loader.h",
"android/ui_application_loader_android.cc",
"android/ui_application_loader_android.h",
+ "android/url_response_disk_cache_delegate_impl.cc",
+ "android/url_response_disk_cache_delegate_impl.h",
]
deps += [
@@ -397,6 +399,32 @@
":bootstrap_java",
"//mojo/public/tools:copy_network_service",
]
+
+ if (!is_debug) {
+ sources += [
+ "$root_out_dir/authenticating_url_loader_interceptor.mojo",
+ "$root_out_dir/dart_content_handler.mojo",
+ "$root_out_dir/device_info.mojo",
+ "$root_out_dir/icu_data.mojo",
+ "$root_out_dir/java_handler.mojo",
+ "$root_out_dir/kiosk_wm.mojo",
+ "$root_out_dir/surfaces_service.mojo",
+ "$root_out_dir/tracing.mojo",
+ "$root_out_dir/view_manager.mojo",
+ ]
+
+ deps += [
+ "//services/authenticating_url_loader_interceptor",
+ "//services/android:java_handler",
+ "//services/dart:dart_content_handler",
+ "//services/device_info",
+ "//services/icu_data",
+ "//services/kiosk_wm",
+ "//services/surfaces",
+ "//services/tracing",
+ "//services/view_manager",
+ ]
+ }
}
copy_ex("copy_mojo_shell_test_assets") {