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

Side by Side Diff: mojo/public/java/application/src/org/chromium/mojo/application/ApplicationRunner.java

Issue 2250183003: Make the fuchsia mojo/public repo the source of truth. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 package org.chromium.mojo.application;
6
7 import org.chromium.mojo.system.Core;
8 import org.chromium.mojo.system.MessagePipeHandle;
9 import org.chromium.mojo.system.RunLoop;
10
11 /**
12 * A utility for running an Application.
13 *
14 */
15 public class ApplicationRunner {
16 /**
17 * Runs the delegate in a RunLoop.
18 *
19 * @param delegate Application specific functionality.
20 * @param core Core mojo interface.
21 * @param applicationRequest Handle for the application request.
22 */
23 public static void run(
24 ApplicationDelegate delegate, Core core, MessagePipeHandle applicati onRequest) {
25 try (RunLoop runLoop = core.createDefaultRunLoop()) {
26 try (ApplicationImpl application =
27 new ApplicationImpl(delegate, core, applicationReque st)) {
28 runLoop.run();
29 }
30 }
31 }
32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698