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

Unified Diff: chrome/browser/file_select_helper.cc

Issue 2176933002: Tiny: Fix crash in FileSelectHelper::CheckDownloadRequestWithSafeBrowsing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minimize code change of this fix Created 4 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/file_select_helper.cc
diff --git a/chrome/browser/file_select_helper.cc b/chrome/browser/file_select_helper.cc
index 3037108c1b62376badc48016e1b8c000201a5ef1..338426c2660eaa8871afb2a96e4d316043391b87 100644
--- a/chrome/browser/file_select_helper.cc
+++ b/chrome/browser/file_select_helper.cc
@@ -531,8 +531,7 @@ void FileSelectHelper::CheckDownloadRequestWithSafeBrowsing(
GURL requestor_url = params->requestor;
sb_service->download_protection_service()->CheckPPAPIDownloadRequest(
- requestor_url, default_file_path, alternate_extensions,
- Profile::FromBrowserContext(web_contents_->GetBrowserContext()),
+ requestor_url, default_file_path, alternate_extensions, profile_,
base::Bind(&InterpretSafeBrowsingVerdict,
base::Bind(&FileSelectHelper::ProceedWithSafeBrowsingVerdict,
this, default_file_path, base::Passed(&params))));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698