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

Side by Side 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: misc build fixes 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/shell/utility/shell_content_utility_client.h"
6
7 #include "content/public/common/application_registry.h"
8 #include "content/public/test/test_mojo_app.h"
9 #include "mojo/shell/static_application_loader.h"
10
11 namespace content {
12
13 namespace {
14
15 scoped_ptr<mojo::ApplicationDelegate> CreateTestApp() {
16 return scoped_ptr<mojo::ApplicationDelegate>(new TestMojoApp);
17 }
18
19 } // namespace
20
21 ShellContentUtilityClient::~ShellContentUtilityClient() {
22 }
23
24 void ShellContentUtilityClient::RegisterMojoApplications(
25 ApplicationRegistry* registry) {
26 registry->RegisterStaticAppForURL(
27 GURL(kTestMojoAppUrl), base::Bind(&CreateTestApp));
28 }
29
30 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698