Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / content / shell / utility / shell_content_utility_client.cc
blobd6c298261b64e873f759bbfc57b6e26d8ffd23d4
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.
5 #include "content/shell/utility/shell_content_utility_client.h"
7 #include "base/bind.h"
8 #include "base/memory/scoped_ptr.h"
9 #include "content/public/test/test_mojo_app.h"
10 #include "mojo/shell/static_application_loader.h"
12 namespace content {
14 namespace {
16 scoped_ptr<mojo::ApplicationDelegate> CreateTestApp() {
17 return scoped_ptr<mojo::ApplicationDelegate>(new TestMojoApp);
20 } // namespace
22 ShellContentUtilityClient::~ShellContentUtilityClient() {
25 void ShellContentUtilityClient::RegisterMojoApplications(
26 StaticMojoApplicationMap* apps) {
27 apps->insert(
28 std::make_pair(GURL(kTestMojoAppUrl), base::Bind(&CreateTestApp)));
31 } // namespace content