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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationManager.java

Issue 2797573002: Fix startForegroundService API calls. (Closed)
Patch Set: Addressed comments Created 3 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
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationManager.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationManager.java b/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationManager.java
index 161c38ade9d06e7c0512e73bf7312e074c92ee46..adfebd95ef898ec994349a55fbc69d3106ad3eec 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationManager.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationManager.java
@@ -225,7 +225,7 @@ public class MediaNotificationManager {
if (intent.getAction() == null) {
// The intent comes from {@link startService()} or
- // {@link startServiceWithNotification}.
+ // {@link startForegroundService}.
manager.onServiceStarted(this);
} else {
// The intent comes from the notification. In this case, {@link onServiceStarted()}
@@ -686,8 +686,7 @@ public class MediaNotificationManager {
if (mService == null) {
updateMediaSession();
updateNotificationBuilder();
- AppHooks.get().startServiceWithNotification(
- createIntent(), mMediaNotificationInfo.id, mNotificationBuilder.build());
+ AppHooks.get().startForegroundService(createIntent());
} else {
mService.startService(createIntent());
}
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698