Index: content/browser/download/mhtml_generation_manager.cc |
diff --git a/content/browser/download/mhtml_generation_manager.cc b/content/browser/download/mhtml_generation_manager.cc |
index 8e0ab7e9fb47de6e4ba73afc0ae189a035369fc3..890803a4ff3b789985d172f254ac566e3614aded 100644 |
--- a/content/browser/download/mhtml_generation_manager.cc |
+++ b/content/browser/download/mhtml_generation_manager.cc |
@@ -42,7 +42,7 @@ void MHTMLGenerationManager::GenerateMHTML(WebContents* web_contents, |
Job job; |
job.file_path = file; |
job.process_id = web_contents->GetRenderProcessHost()->GetID(); |
- job.routing_id = web_contents->GetRenderViewHost()->routing_id(); |
+ job.routing_id = web_contents->GetRenderViewHost()->GetRoutingID(); |
job.callback = callback; |
id_to_job_[job_id] = job; |
@@ -96,14 +96,15 @@ void MHTMLGenerationManager::FileCreated(int job_id, |
job.browser_file = browser_file; |
job.renderer_file = renderer_file; |
- RenderViewHost* rvh = RenderViewHost::FromID(job.process_id, job.routing_id); |
+ RenderViewHostImpl* rvh = RenderViewHostImpl::FromID( |
+ job.process_id, job.routing_id); |
if (!rvh) { |
// The tab went away. |
JobFinished(job_id, -1); |
return; |
} |
- rvh->Send(new ViewMsg_SavePageAsMHTML(rvh->routing_id(), job_id, |
+ rvh->Send(new ViewMsg_SavePageAsMHTML(rvh->GetRoutingID(), job_id, |
renderer_file)); |
} |