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

Unified Diff: chrome/browser/file_select_helper.cc

Issue 2601303002: Wireup SafeBrowsingNavigationObserverManager to help PPAPI download attribution (Closed)
Patch Set: nit Created 3 years, 12 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: chrome/browser/file_select_helper.cc
diff --git a/chrome/browser/file_select_helper.cc b/chrome/browser/file_select_helper.cc
index 1e3e01e3fa3a4b22ae145d308c6917afd98a1b49..c44ad071bd63e24fa9cea466b21e2e3eeabe211e 100644
--- a/chrome/browser/file_select_helper.cc
+++ b/chrome/browser/file_select_helper.cc
@@ -546,7 +546,9 @@ void FileSelectHelper::CheckDownloadRequestWithSafeBrowsing(
GURL requestor_url = params->requestor;
sb_service->download_protection_service()->CheckPPAPIDownloadRequest(
- requestor_url, default_file_path, alternate_extensions, profile_,
+ requestor_url, render_frame_host_->GetLastCommittedURL(),
+ WebContents::FromRenderFrameHost(render_frame_host_),
Nathan Parker 2017/01/04 19:49:12 possible idea: Do you want to just pass render_fra
Jialiu Lin 2017/01/04 21:53:35 I thought of that. There is one risk though, durin
asanka 2017/01/05 18:00:44 web_contents_, but you'd need to be prepared for t
Jialiu Lin 2017/01/05 20:12:21 That's fine. If web_contents_ is null, SessionTa
asanka 2017/01/05 20:35:31 Yup. But we are still indirecting through a nullpt
Jialiu Lin 2017/01/05 22:10:12 Agree... I added checks here in case render_frame_
+ default_file_path, alternate_extensions, profile_,
base::Bind(&InterpretSafeBrowsingVerdict,
base::Bind(&FileSelectHelper::ProceedWithSafeBrowsingVerdict,
this, default_file_path, base::Passed(&params))));

Powered by Google App Engine
This is Rietveld 408576698