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

Unified Diff: content/shell/utility/shell_content_utility_client.cc

Issue 1149833007: Embed a mojo ApplicationManager in content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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: content/shell/utility/shell_content_utility_client.cc
diff --git a/content/shell/utility/shell_content_utility_client.cc b/content/shell/utility/shell_content_utility_client.cc
new file mode 100644
index 0000000000000000000000000000000000000000..d6c298261b64e873f759bbfc57b6e26d8ffd23d4
--- /dev/null
+++ b/content/shell/utility/shell_content_utility_client.cc
@@ -0,0 +1,31 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/shell/utility/shell_content_utility_client.h"
+
+#include "base/bind.h"
+#include "base/memory/scoped_ptr.h"
+#include "content/public/test/test_mojo_app.h"
+#include "mojo/shell/static_application_loader.h"
+
+namespace content {
+
+namespace {
+
+scoped_ptr<mojo::ApplicationDelegate> CreateTestApp() {
+ return scoped_ptr<mojo::ApplicationDelegate>(new TestMojoApp);
+}
+
+} // namespace
+
+ShellContentUtilityClient::~ShellContentUtilityClient() {
+}
+
+void ShellContentUtilityClient::RegisterMojoApplications(
+ StaticMojoApplicationMap* apps) {
+ apps->insert(
+ std::make_pair(GURL(kTestMojoAppUrl), base::Bind(&CreateTestApp)));
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698