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

Unified Diff: content/browser/download/mhtml_generation_manager.cc

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR, fix a weird runtime issue. Created 8 years, 10 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: 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));
}

Powered by Google App Engine
This is Rietveld 408576698