| 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 {
|
| + public DelegatingIntentService() {
|
| + super("DelegatingIntentService");
|
| + }
|
| +
|
| + /**
|
| + * @see IntentService#onHandleIntent(Intent)
|
| + */
|
| + @Override
|
| + protected void onHandleIntent(Intent intent) {
|
| + IntentReceiverRegistry.getInstance().onIntentReceived(intent);
|
| + }
|
| +}
|
|
|