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

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

Issue 2776243003: Make media notification classes configurable (Closed)
Patch Set: rebased Created 3 years, 9 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 | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationManager.java » ('j') | 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/MediaButtonReceiver.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaButtonReceiver.java b/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaButtonReceiver.java
index 736cf0c55c36d0bbf65cee9f5a42de9dbceb8ea1..0ad016ea9471d69550d69f705ad37bbe8a50bdd2 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaButtonReceiver.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaButtonReceiver.java
@@ -15,11 +15,11 @@ import android.content.Intent;
* This is there for backward compatibility with JB_MR0 and JB_MR1.
*/
public abstract class MediaButtonReceiver extends BroadcastReceiver {
- public abstract String getServiceClassName();
+ public abstract Class<?> getServiceClass();
@Override
public void onReceive(Context context, Intent intent) {
- intent.setClassName(context, getServiceClassName());
+ intent.setClass(context, getServiceClass());
context.startService(intent);
}
}
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationManager.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698