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

Side by Side Diff: content/shell/utility/shell_content_utility_client.cc

Issue 1675083002: Rename ApplicationDelegate to ShellClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegate
Patch Set: . Created 4 years, 10 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/shell/utility/shell_content_utility_client.h" 5 #include "content/shell/utility/shell_content_utility_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/public/test/test_mojo_app.h" 9 #include "content/public/test/test_mojo_app.h"
10 #include "mojo/shell/static_application_loader.h" 10 #include "mojo/shell/static_application_loader.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 namespace { 14 namespace {
15 15
16 scoped_ptr<mojo::ApplicationDelegate> CreateTestApp() { 16 scoped_ptr<mojo::ShellClient> CreateTestApp() {
17 return scoped_ptr<mojo::ApplicationDelegate>(new TestMojoApp); 17 return scoped_ptr<mojo::ShellClient>(new TestMojoApp);
18 } 18 }
19 19
20 } // namespace 20 } // namespace
21 21
22 ShellContentUtilityClient::~ShellContentUtilityClient() { 22 ShellContentUtilityClient::~ShellContentUtilityClient() {
23 } 23 }
24 24
25 void ShellContentUtilityClient::RegisterMojoApplications( 25 void ShellContentUtilityClient::RegisterMojoApplications(
26 StaticMojoApplicationMap* apps) { 26 StaticMojoApplicationMap* apps) {
27 apps->insert( 27 apps->insert(
28 std::make_pair(GURL(kTestMojoAppUrl), base::Bind(&CreateTestApp))); 28 std::make_pair(GURL(kTestMojoAppUrl), base::Bind(&CreateTestApp)));
29 } 29 }
30 30
31 } // namespace content 31 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/mus/render_widget_window_tree_client_factory.cc ('k') | device/devices_app/devices_app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698