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

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

Issue 1309233008: Move applications using play services to the shell. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « shell/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6b40a6850c885573f93a3e083a04f73aad7e2b3c..5eabf02007a8e4ac3b2b76573ef80720fa20e72f 100644
--- a/shell/android/apk/src/org/chromium/mojo/shell/JavaApplicationRegistry.java
+++ b/shell/android/apk/src/org/chromium/mojo/shell/JavaApplicationRegistry.java
@@ -4,15 +4,18 @@
package org.chromium.mojo.shell;
+import org.chromium.base.ApplicationStatus;
import org.chromium.base.CalledByNative;
import org.chromium.base.JNINamespace;
import org.chromium.mojo.application.ApplicationConnection;
import org.chromium.mojo.application.ApplicationDelegate;
import org.chromium.mojo.application.ApplicationRunner;
import org.chromium.mojo.application.ServiceFactoryBinder;
+import org.chromium.mojo.authentication.AuthenticationApplicationDelegate;
import org.chromium.mojo.system.MessagePipeHandle;
import org.chromium.mojo.system.impl.CoreImpl;
import org.chromium.mojom.mojo.Shell;
+import org.chromium.services.location.LocationApplicationDelegate;
import java.util.HashMap;
import java.util.Map;
@@ -76,11 +79,18 @@ public class JavaApplicationRegistry {
private static JavaApplicationRegistry create() {
JavaApplicationRegistry registry = new JavaApplicationRegistry();
// Register services.
+ registry.registerApplicationDelegate("mojo:authentication",
+ new AuthenticationApplicationDelegate(ApplicationStatus.getApplicationContext(),
+ CoreImpl.getInstance()));
registry.registerApplicationDelegate("mojo:keyboard",
new ServiceProviderFactoryApplicationDelegate(new KeyboardFactory()));
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(
« no previous file with comments | « shell/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698