Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Unified Diff: shell/context.cc

Issue 1088533003: Adding URLResponse Disk Cache to mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Remove unused function Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: shell/context.cc
diff --git a/shell/context.cc b/shell/context.cc
index 8aa8a7ae101c52fff1a61fa7c80c79af4f4d6a40..4b32587b66874431eff2c37d218797bb046e616c 100644
--- a/shell/context.cc
+++ b/shell/context.cc
@@ -31,10 +31,12 @@
#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/service_cache_loader.h"
#include "shell/switches.h"
#include "shell/tracer.h"
#include "url/gurl.h"
@@ -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 ServiceCacheLoader()), "service_cache",
+ base::MessageLoop::TYPE_DEFAULT)),
+ GURL("mojo:service_cache"));
+
EnsureEmbedderIsInitialized();
task_runners_.reset(
new TaskRunners(base::MessageLoop::current()->message_loop_proxy()));

Powered by Google App Engine
This is Rietveld 408576698