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

Unified Diff: content/public/android/java/src/org/chromium/content_public/browser/MediaSessionObserver.java

Issue 2471453002: Fix for MediaSessionObserver.stopObserving (Closed)
Patch Set: Created 4 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content_public/browser/MediaSessionObserver.java
diff --git a/content/public/android/java/src/org/chromium/content_public/browser/MediaSessionObserver.java b/content/public/android/java/src/org/chromium/content_public/browser/MediaSessionObserver.java
index fd789ded767928340da05c3081a929b24a390bbf..5e03463b9a29bbf9a5226e19632270544cd57a23 100644
--- a/content/public/android/java/src/org/chromium/content_public/browser/MediaSessionObserver.java
+++ b/content/public/android/java/src/org/chromium/content_public/browser/MediaSessionObserver.java
@@ -62,5 +62,6 @@ public abstract class MediaSessionObserver {
public final void stopObserving() {
if (mMediaSession == null) return;
mMediaSession.removeObserver(this);
+ mMediaSession = null;
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698