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

Unified Diff: chrome/browser/android/download/download_controller.cc

Issue 2515823002: Remove WebContents::GetRoutingID(). (Closed)
Patch Set: deleted all definitions and declarations of GetRoutingID Created 4 years, 1 month 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: 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 3574b54bce1eeef86b373e3e3216e1b84f7a4458..d093b09f712b103f67287e025f718ef6df21f3f3 100644
--- a/chrome/browser/android/download/download_controller.cc
+++ b/chrome/browser/android/download/download_controller.cc
@@ -360,7 +360,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));

Powered by Google App Engine
This is Rietveld 408576698