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

Unified Diff: shell/android/apk/src/org/chromium/mojo/shell/JavaApplicationRegistry.java

Issue 1468913003: Add android.mojo application. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Follow review Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: shell/android/apk/src/org/chromium/mojo/shell/JavaApplicationRegistry.java
diff --git a/shell/android/apk/src/org/chromium/mojo/shell/JavaApplicationRegistry.java b/shell/android/apk/src/org/chromium/mojo/shell/JavaApplicationRegistry.java
index 49b5ff3e68c1e2398ce0648e929f6a9db5b61426..5a7ef8e0450075e2e68313b1b2454e3429db709e 100644
--- a/shell/android/apk/src/org/chromium/mojo/shell/JavaApplicationRegistry.java
+++ b/shell/android/apk/src/org/chromium/mojo/shell/JavaApplicationRegistry.java
@@ -85,24 +85,26 @@ public class JavaApplicationRegistry {
private static JavaApplicationRegistry create() {
JavaApplicationRegistry registry = new JavaApplicationRegistry();
// Register services.
+ registry.registerApplicationDelegate("mojo:android",
+ new ServiceProviderFactoryApplicationDelegate(new AndroidFactory()));
registry.registerApplicationDelegate("mojo:authentication",
new AuthenticationApplicationDelegate(ApplicationStatus.getApplicationContext(),
CoreImpl.getInstance()));
- registry.registerApplicationDelegate(
- "mojo:input", new ServiceProviderFactoryApplicationDelegate(new InputFactory()));
registry.registerApplicationDelegate("mojo:keyboard",
new ServiceProviderFactoryApplicationDelegate(new KeyboardFactory()));
registry.registerApplicationDelegate(
+ "mojo:input", new ServiceProviderFactoryApplicationDelegate(new InputFactory()));
+ registry.registerApplicationDelegate(
"mojo:intent_receiver", new ServiceProviderFactoryApplicationDelegate(
IntentReceiverRegistry.getInstance()));
registry.registerApplicationDelegate("mojo:location_service",
new LocationApplicationDelegate(ApplicationStatus.getApplicationContext(),
CoreImpl.getInstance()));
- registry.registerApplicationDelegate("mojo:nfc", new NfcApplicationDelegate());
- registry.registerApplicationDelegate("mojo:sharing", new SharingApplicationDelegate());
registry.registerApplicationDelegate(
"mojo:native_viewport_support", new NativeViewportSupportApplicationDelegate());
+ registry.registerApplicationDelegate("mojo:nfc", new NfcApplicationDelegate());
+ registry.registerApplicationDelegate("mojo:sharing", new SharingApplicationDelegate());
registry.registerApplicationDelegate(
"mojo:vsync", new ServiceProviderFactoryApplicationDelegate(
new VsyncFactory(registry.mHandlerThread.getLooper())));

Powered by Google App Engine
This is Rietveld 408576698