| 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..224a76dfda18f2ac097f2e2819ba994ad1e141b1
|
| --- /dev/null
|
| +++ b/content/shell/utility/shell_content_utility_client.cc
|
| @@ -0,0 +1,30 @@
|
| +// 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 "content/public/common/application_registry.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(
|
| + ApplicationRegistry* registry) {
|
| + registry->RegisterStaticAppForURL(
|
| + GURL(kTestMojoAppUrl), base::Bind(&CreateTestApp));
|
| +}
|
| +
|
| +} // namespace content
|
|
|