diff options
author | rockot <rockot@chromium.org> | 2015-06-10 22:53:58 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-11 05:54:35 +0000 |
commit | ed800dc138edfa261aa766281b96f736ff9824f6 (patch) | |
tree | acb8cf3be46d24537b8904c9fc2620c0e9b715a2 /device/devices_app/main.cc | |
parent | c39c3572e353b8120ae64aaf77d32f52598b740e (diff) | |
download | chromium_src-ed800dc138edfa261aa766281b96f736ff9824f6.zip chromium_src-ed800dc138edfa261aa766281b96f736ff9824f6.tar.gz chromium_src-ed800dc138edfa261aa766281b96f736ff9824f6.tar.bz2 |
Introduce the devices Mojo app
It's a small Mojo app that currently only hosts USB device
services. This CL adds the app along with an apptest suite
(run manually with mojo_runner mojo:devices_apptests).
The app is hooked up to Chrome to run in the browser process,
though there are currently no production code paths which
cause the app to launch.
BUG=498557
Review URL: https://codereview.chromium.org/1165223004
Cr-Commit-Position: refs/heads/master@{#333899}
Diffstat (limited to 'device/devices_app/main.cc')
-rw-r--r-- | device/devices_app/main.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/device/devices_app/main.cc b/device/devices_app/main.cc new file mode 100644 index 0000000..e82edb3 --- /dev/null +++ b/device/devices_app/main.cc @@ -0,0 +1,14 @@ +// 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 "base/sequenced_task_runner.h" +#include "device/devices_app/devices_app.h" +#include "mojo/application/public/cpp/application_runner.h" +#include "third_party/mojo/src/mojo/public/c/system/main.h" + +MojoResult MojoMain(MojoHandle shell_handle) { + mojo::ApplicationRunner runner( + device::DevicesApp::CreateDelegate(nullptr).release()); + return runner.Run(shell_handle); +} |