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

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

Issue 1061313003: Introduce intent manager. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Follow review Created 5 years, 8 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
Index: shell/android/apk/src/org/chromium/mojo/shell/DelegatingIntentService.java
diff --git a/shell/android/apk/src/org/chromium/mojo/shell/DelegatingIntentService.java b/shell/android/apk/src/org/chromium/mojo/shell/DelegatingIntentService.java
new file mode 100644
index 0000000000000000000000000000000000000000..dfafd3eada359fcd1bf767a78bad2c4ee5ec618d
--- /dev/null
+++ b/shell/android/apk/src/org/chromium/mojo/shell/DelegatingIntentService.java
@@ -0,0 +1,25 @@
+// 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.
+
+package org.chromium.mojo.shell;
+
+import android.app.IntentService;
+import android.content.Intent;
+
+/**
+ * Intent Service that will forward received intents to the {@link IntentReceiverRegistry}.
+ */
+public class DelegatingIntentService extends IntentService {
ppi 2015/04/08 10:42:49 Wdyt about calling this IntentReceiverService, to
qsr 2015/04/08 11:03:23 Done.
+ public DelegatingIntentService() {
+ super("DelegatingIntentService");
+ }
+
+ /**
+ * @see IntentService#onHandleIntent(Intent)
+ */
+ @Override
+ protected void onHandleIntent(Intent intent) {
+ IntentReceiverRegistry.getInstance().onIntentReceived(intent);
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698