Index: shell/context.cc |
diff --git a/shell/context.cc b/shell/context.cc |
index 8aa8a7ae101c52fff1a61fa7c80c79af4f4d6a40..331efa115f2c94b67b63d1eac6db058f0aa5fb39 100644 |
--- a/shell/context.cc |
+++ b/shell/context.cc |
@@ -31,12 +31,14 @@ |
#include "services/tracing/tracing.mojom.h" |
#include "shell/application_manager/application_loader.h" |
#include "shell/application_manager/application_manager.h" |
+#include "shell/background_application_loader.h" |
#include "shell/command_line_util.h" |
#include "shell/filename_util.h" |
#include "shell/in_process_native_runner.h" |
#include "shell/out_of_process_native_runner.h" |
#include "shell/switches.h" |
#include "shell/tracer.h" |
+#include "shell/url_response_disk_cache_loader.h" |
#include "url/gurl.h" |
using mojo::ServiceProvider; |
@@ -258,6 +260,12 @@ bool Context::InitWithPaths(const base::FilePath& shell_child_path) { |
mojo_shell_child_path_ = shell_child_path; |
+ application_manager()->SetLoaderForURL( |
+ make_scoped_ptr(new BackgroundApplicationLoader( |
+ make_scoped_ptr(new URLResponseDiskCacheLoader()), |
+ "url_response_disk_cache", base::MessageLoop::TYPE_DEFAULT)), |
+ GURL("mojo:url_response_disk_cache")); |
+ |
EnsureEmbedderIsInitialized(); |
task_runners_.reset( |
new TaskRunners(base::MessageLoop::current()->message_loop_proxy())); |