Index: chrome/browser/android/download/download_controller.cc |
diff --git a/chrome/browser/android/download/download_controller.cc b/chrome/browser/android/download/download_controller.cc |
index b90f310a7ee54d36a469ac3fbdba5da41087979e..908b121896e53be78a268d17a61217f11891248d 100644 |
--- a/chrome/browser/android/download/download_controller.cc |
+++ b/chrome/browser/android/download/download_controller.cc |
@@ -328,7 +328,7 @@ void DownloadController::StartContextMenuDownload( |
const ContextMenuParams& params, WebContents* web_contents, bool is_link, |
const std::string& extra_headers) { |
int process_id = web_contents->GetRenderProcessHost()->GetID(); |
- int routing_id = web_contents->GetRoutingID(); |
+ int routing_id = web_contents->GetRenderViewHost()->GetRoutingID(); |
AcquireFileAccessPermission( |
web_contents, base::Bind(&CreateContextMenuDownload, process_id, |
routing_id, params, is_link, extra_headers)); |