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

Unified Diff: media/base/browser_cdm.cc

Issue 1341883003: Prepare MediaDrmBridge to work with MediaCodecPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bug526755
Patch Set: Cleanup Created 5 years, 3 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
Index: media/base/browser_cdm.cc
diff --git a/media/base/browser_cdm.cc b/media/base/browser_cdm.cc
index 2c44e1652ad09cf59125a471c051a86609347325..45a2ea2daa19785821659b0a43214aa353200013 100644
--- a/media/base/browser_cdm.cc
+++ b/media/base/browser_cdm.cc
@@ -12,4 +12,9 @@ BrowserCdm::BrowserCdm() {
BrowserCdm::~BrowserCdm() {
}
+// For most subclasses we can delete on the caller thread.
+void BrowserCdm::DeleteOnCorrectThread() {
+ delete this;
+}
+
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698