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

Unified Diff: content/renderer/media/webmediaplayer_ms_compositor.h

Issue 1565893002: Bug Fix: WebMediaPlayerMS Crashes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WeakPtrFactory Created 4 years, 11 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 | content/renderer/media/webmediaplayer_ms_compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webmediaplayer_ms_compositor.h
diff --git a/content/renderer/media/webmediaplayer_ms_compositor.h b/content/renderer/media/webmediaplayer_ms_compositor.h
index 884a003e181df622b93cb6e773b7e4b82ce73381..29a1768da0db38d09ca9d7e775f0f2fcd20934b6 100644
--- a/content/renderer/media/webmediaplayer_ms_compositor.h
+++ b/content/renderer/media/webmediaplayer_ms_compositor.h
@@ -148,6 +148,8 @@ class CONTENT_EXPORT WebMediaPlayerMSCompositor
// |current_frame_lock_| protects |current_frame_used_by_compositor_|,
// |current_frame_|, and |rendering_frame_buffer_|.
base::Lock current_frame_lock_;
+
+ base::WeakPtrFactory<WebMediaPlayerMSCompositor> weak_ptr_factory_;
};
DaleCurtis 2016/01/08 18:56:17 Can you add a DISALLOW_COPY_AND_ASSIGN(...) while
qiangchen 2016/01/08 22:09:39 Done.
}
« no previous file with comments | « no previous file | content/renderer/media/webmediaplayer_ms_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698