| Index: chrome/android/java/src/org/chromium/chrome/browser/AppHooks.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/AppHooks.java b/chrome/android/java/src/org/chromium/chrome/browser/AppHooks.java
|
| index c4d114bf9494e264602d549bfb0ea2670a149cb1..a42905c23f14a1f06b39f66337392acd8548854d 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/AppHooks.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/AppHooks.java
|
| @@ -269,19 +269,13 @@ public abstract class AppHooks {
|
| }
|
|
|
| /**
|
| - * Starts a service from {@code intent}. Meant to eventually be used by services that want to
|
| - * be put into the foreground with {@code notification} via
|
| - * {@link android.app.Service#startForeground(int, Notification)}.
|
| + * Starts a service from {@code intent} with the expectation that it will make itself a
|
| + * foreground service with {@link android.app.Service#startForeground(int, Notification)}.
|
| *
|
| * @param intent The {@link Intent} to fire to start the service.
|
| - * @param notificationId The id of the notification to show.
|
| - * @param notification The {@link Notification} to show.
|
| */
|
| @SuppressWarnings("Unused")
|
| - public void startServiceWithNotification(
|
| - Intent intent, int notificationId, Notification notification) {
|
| - // TODO(dtrainor): Eventually make sure the service gets put into the foreground with
|
| - // {@link android.app.Service#startForeground(int, Notification)}.
|
| + public void startForegroundService(Intent intent) {
|
| ContextUtils.getApplicationContext().startService(intent);
|
| }
|
|
|
|
|