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

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

Issue 1947313002: Enable content embedders to specify mojo application task runner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: restores mojo:media in browser Created 4 years, 7 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 <memory> 7 #include <memory>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "content/public/test/test_mojo_app.h" 10 #include "content/public/test/test_mojo_app.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 namespace { 14 namespace {
15 15
16 std::unique_ptr<shell::ShellClient> CreateTestApp( 16 std::unique_ptr<shell::ShellClient> CreateTestApp(
17 const base::Closure& quit_closure) { 17 const base::Closure& quit_closure) {
18 return std::unique_ptr<shell::ShellClient>(new TestMojoApp); 18 return std::unique_ptr<shell::ShellClient>(new TestMojoApp);
19 } 19 }
20 20
21 } // namespace 21 } // namespace
22 22
23 ShellContentUtilityClient::~ShellContentUtilityClient() { 23 ShellContentUtilityClient::~ShellContentUtilityClient() {
24 } 24 }
25 25
26 void ShellContentUtilityClient::RegisterMojoApplications( 26 void ShellContentUtilityClient::RegisterMojoApplications(
27 StaticMojoApplicationMap* apps) { 27 StaticMojoApplicationMap* apps) {
28 apps->insert(std::make_pair(kTestMojoAppUrl, base::Bind(&CreateTestApp))); 28 MojoApplicationInfo app_info;
29 app_info.application_factory = base::Bind(&CreateTestApp);
30 apps->insert(std::make_pair(kTestMojoAppUrl, app_info));
29 } 31 }
30 32
31 } // namespace content 33 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/shell_content_browser_client.cc ('k') | content/utility/utility_process_control_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698