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

Unified Diff: content/browser/media/android/media_player_renderer.cc

Issue 2630583003: Fix potential process-routing id mismatch (Closed)
Patch Set: Created 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/android/media_player_renderer.cc
diff --git a/content/browser/media/android/media_player_renderer.cc b/content/browser/media/android/media_player_renderer.cc
index f09f21ce252cb711ac8c18b8cb63250d9b7890ac..2f8e9e602c4774bacddda3b1ce687a224606387e 100644
--- a/content/browser/media/android/media_player_renderer.cc
+++ b/content/browser/media/android/media_player_renderer.cc
@@ -172,9 +172,7 @@ base::TimeDelta MediaPlayerRenderer::GetMediaTime() {
media::MediaResourceGetter* MediaPlayerRenderer::GetMediaResourceGetter() {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
if (!media_resource_getter_.get()) {
- WebContents* web_contents =
- WebContents::FromRenderFrameHost(render_frame_host_);
- RenderProcessHost* host = web_contents->GetRenderProcessHost();
+ RenderProcessHost* host = render_frame_host_->GetProcess();
BrowserContext* context = host->GetBrowserContext();
StoragePartition* partition = host->GetStoragePartition();
storage::FileSystemContext* file_system_context =
« 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