diff options
Diffstat (limited to 'chromium/components/download/quarantine/quarantine_win.cc')
-rw-r--r-- | chromium/components/download/quarantine/quarantine_win.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chromium/components/download/quarantine/quarantine_win.cc b/chromium/components/download/quarantine/quarantine_win.cc index 948c59682a6..f240414d7a6 100644 --- a/chromium/components/download/quarantine/quarantine_win.cc +++ b/chromium/components/download/quarantine/quarantine_win.cc @@ -74,7 +74,8 @@ bool ZoneIdentifierPresentForFile(const base::FilePath& path) { std::vector<char> zone_identifier_contents_buffer(32); DWORD actual_length = 0; if (!ReadFile(file.Get(), &zone_identifier_contents_buffer.front(), - zone_identifier_contents_buffer.size(), &actual_length, NULL)) + zone_identifier_contents_buffer.size(), &actual_length, + nullptr)) return false; zone_identifier_contents_buffer.resize(actual_length); @@ -227,9 +228,9 @@ bool InvokeAttachmentServices(const base::FilePath& full_path, return false; } - // The source URL could be empty if it was not a valid URL or was not HTTP/S. - // If so, user "about:internet" as a fallback URL. The latter is known to - // reliably map to the Internet zone. + // The source URL could be empty if it was not a valid URL, or was not HTTP/S, + // or the download was off-the-record. If so, user "about:internet" as a + // fallback URL. The latter is known to reliably map to the Internet zone. // // In addition, URLs that are longer than INTERNET_MAX_URL_LENGTH are also // known to cause problems for URLMon. Hence also use "about:internet" in |