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 4b0e3beea3d07d6ae565d8e7d6d5694a9f533d8f..e1c1ad87080edf214ffd3d3271b01d9f88781c0c 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" |
@@ -260,6 +261,13 @@ MojoShellContext::MojoShellContext() { |
GURL("mojo:media")); |
#endif |
+ base::Callback<scoped_ptr<mojo::ShellClient>()> profile_callback = |
+ base::Bind(&profile::CreateProfileApp); |
+ application_manager_->SetLoaderForURL( |
+ scoped_ptr<mojo::shell::ApplicationLoader>( |
+ new StaticApplicationLoader(profile_callback)), |
+ GURL("mojo:profile")); |
+ |
if (!IsRunningInMojoShell()) { |
MojoShellConnectionImpl::Create( |
application_manager_->InitInstanceForEmbedder(GURL(kBrowserAppUrl))); |