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

Unified Diff: chrome/browser/download/save_file.cc

Issue 590001: Respect the SaveZoneInformation policy when marking downloaded files as unsaf... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 10 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 | « chrome/browser/download/download_file.cc ('k') | chrome/common/win_safe_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/save_file.cc
===================================================================
--- chrome/browser/download/save_file.cc (revision 38375)
+++ chrome/browser/download/save_file.cc (working copy)
@@ -100,7 +100,8 @@
// Sets the zone to tell Windows that this file comes from the Internet.
// We ignore the return value because a failure is not fatal.
// TODO(port): Similarly mark on Mac.
- win_util::SetInternetZoneIdentifier(full_path_);
+ win_util::SetInternetZoneIdentifier(full_path_,
+ UTF8ToWide(info_->url.spec()));
#endif
return true;
}
« no previous file with comments | « chrome/browser/download/download_file.cc ('k') | chrome/common/win_safe_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698