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

Side by Side Diff: media/mojo/services/main.cc

Issue 2900773004: media: Add experimental feature to enable Mojo CDM on desktop Chromium (Closed)
Patch Set: drop utility_process_host_impl.cc change Created 3 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
« no previous file with comments | « media/media_options.gni ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/at_exit.h" 5 #include "base/at_exit.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "media/mojo/services/media_service_factory.h" 9 #include "media/mojo/services/media_service_factory.h"
10 #include "services/service_manager/public/c/main.h" 10 #include "services/service_manager/public/c/main.h"
11 #include "services/service_manager/public/cpp/service_runner.h" 11 #include "services/service_manager/public/cpp/service_runner.h"
12 12
13 MojoResult ServiceMain(MojoHandle mojo_handle) { 13 MojoResult ServiceMain(MojoHandle mojo_handle) {
14 // Enable logging. 14 // Enable logging.
15 base::AtExitManager at_exit;
16 service_manager::ServiceRunner::InitBaseCommandLine(); 15 service_manager::ServiceRunner::InitBaseCommandLine();
17 16
18 logging::LoggingSettings settings; 17 logging::LoggingSettings settings;
19 settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG; 18 settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG;
20 logging::InitLogging(settings); 19 logging::InitLogging(settings);
21 20
22 std::unique_ptr<service_manager::Service> service = 21 std::unique_ptr<service_manager::Service> service =
23 media::CreateMediaServiceForTesting(); 22 media::CreateMediaServiceForTesting();
24 service_manager::ServiceRunner runner(service.release()); 23 service_manager::ServiceRunner runner(service.release());
25 return runner.Run(mojo_handle, false /* init_base */); 24 return runner.Run(mojo_handle, false /* init_base */);
26 } 25 }
OLDNEW
« no previous file with comments | « media/media_options.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698