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

Unified Diff: sky/shell/android/org/domokit/sky/shell/ServiceRegistry.java

Issue 1211913005: Add a sky media service to make it possible to play a sound. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Updated per review Created 5 years, 6 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 | « sky/services/media/src/org/domokit/media/MediaServiceImpl.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/android/org/domokit/sky/shell/ServiceRegistry.java
diff --git a/sky/shell/android/org/domokit/sky/shell/ServiceRegistry.java b/sky/shell/android/org/domokit/sky/shell/ServiceRegistry.java
index 49affd14353c2d8f4de7ae39facef9748e36728d..73c87d77a55a2f7b57af18161585271145a912a7 100644
--- a/sky/shell/android/org/domokit/sky/shell/ServiceRegistry.java
+++ b/sky/shell/android/org/domokit/sky/shell/ServiceRegistry.java
@@ -4,6 +4,8 @@
package org.domokit.sky.shell;
+import android.util.Log;
+
import java.util.Map;
import java.util.TreeMap;
@@ -11,6 +13,7 @@ import java.util.TreeMap;
* An registry for services.
**/
public class ServiceRegistry {
+ private static final String TAG = "ServiceRegistry";
private Map<String, ServiceFactory> mRegistrations;
public static final ServiceRegistry SHARED = new ServiceRegistry();
@@ -26,6 +29,9 @@ public class ServiceRegistry {
}
public ServiceFactory get(String interfaceName) {
+ if (!mRegistrations.containsKey(interfaceName)) {
+ Log.e(TAG, "Unknown service " + interfaceName);
+ }
return mRegistrations.get(interfaceName);
}
}
« no previous file with comments | « sky/services/media/src/org/domokit/media/MediaServiceImpl.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698