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

Unified Diff: shell/android/apk/src/org/chromium/mojo/shell/IntentReceiverService.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/IntentReceiverService.java
diff --git a/shell/android/apk/src/org/chromium/mojo/shell/IntentReceiverService.java b/shell/android/apk/src/org/chromium/mojo/shell/IntentReceiverService.java
new file mode 100644
index 0000000000000000000000000000000000000000..0a7a3ad84407492380c0f991787f1eb0c6a25549
--- /dev/null
+++ b/shell/android/apk/src/org/chromium/mojo/shell/IntentReceiverService.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;
+
+/**
+ * IntentService that will forward received intents to the {@link IntentReceiverRegistry}.
+ */
+public class IntentReceiverService extends IntentService {
+ public IntentReceiverService() {
+ super("IntentReceiverService");
+ }
+
+ /**
+ * @see IntentService#onHandleIntent(Intent)
+ */
+ @Override
+ protected void onHandleIntent(Intent intent) {
+ IntentReceiverRegistry.getInstance().onIntentReceived(intent);
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698