Index: content/browser/mojo/mojo_shell_context.cc |
diff --git a/content/browser/mojo/mojo_shell_context.cc b/content/browser/mojo/mojo_shell_context.cc |
index 4cbad8ddb4094e6370ebdc4e577ac25cdc970104..e1a0a4ecd0b4354c1125d8a0e2c8d25659f30231 100644 |
--- a/content/browser/mojo/mojo_shell_context.cc |
+++ b/content/browser/mojo/mojo_shell_context.cc |
@@ -11,6 +11,7 @@ |
#include "base/path_service.h" |
#include "base/single_thread_task_runner.h" |
#include "base/thread_task_runner_handle.h" |
+#include "components/profile_service/profile_app.h" |
#include "content/browser/gpu/gpu_process_host.h" |
#include "content/common/gpu/gpu_process_launch_causes.h" |
#include "content/common/mojo/mojo_shell_connection_impl.h" |
@@ -250,6 +251,11 @@ MojoShellContext::MojoShellContext() { |
"mojo:media"); |
#endif |
+ base::Callback<scoped_ptr<mojo::ShellClient>()> profile_callback = |
+ base::Bind(&profile::CreateProfileApp); |
+ application_manager_->SetLoaderForName( |
+ make_scoped_ptr(new StaticLoader(profile_callback)), "mojo:profile"); |
+ |
if (!IsRunningInMojoShell()) { |
MojoShellConnectionImpl::Create( |
application_manager_->InitInstanceForEmbedder(kBrowserAppName)); |