diff options
author | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-29 15:47:53 +0000 |
---|---|---|
committer | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-29 15:47:53 +0000 |
commit | eae033a397da42c049575245c276a6eb6f5be93e (patch) | |
tree | 88f2bdd5fffce43a0d016af0e302df2ff4904411 /chrome/browser/download/download_file.cc | |
parent | 75995addc27a22785681b1a556e7467051479089 (diff) | |
download | chromium_src-eae033a397da42c049575245c276a6eb6f5be93e.zip chromium_src-eae033a397da42c049575245c276a6eb6f5be93e.tar.gz chromium_src-eae033a397da42c049575245c276a6eb6f5be93e.tar.bz2 |
Add kMDItemWhereFroms metadata attribute to downloaded files. Combine with quarantine utility function and move into chrome/browser/cocoa, since common/ is not the right place for browser code.
BUG=22289
TEST=file downloading
Review URL: http://codereview.chromium.org/220037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27483 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/download_file.cc')
-rw-r--r-- | chrome/browser/download/download_file.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/download/download_file.cc b/chrome/browser/download/download_file.cc index 8e0c0e4..7066b5b 100644 --- a/chrome/browser/download/download_file.cc +++ b/chrome/browser/download/download_file.cc @@ -28,7 +28,7 @@ #include "app/win_util.h" #include "chrome/common/win_safe_util.h" #elif defined(OS_MACOSX) -#include "chrome/common/quarantine_mac.h" +#include "chrome/browser/cocoa/file_metadata.h" #endif // Throttle updates to the UI thread so that a fast moving download doesn't @@ -148,8 +148,10 @@ void DownloadFile::AnnotateWithSourceInformation() { // We ignore the return value because a failure is not fatal. win_util::SetInternetZoneIdentifier(full_path_); #elif defined(OS_MACOSX) - quarantine_mac::AddQuarantineMetadataToFile(full_path_, source_url_, - referrer_url_); + file_metadata::AddQuarantineMetadataToFile(full_path_, source_url_, + referrer_url_); + file_metadata::AddOriginMetadataToFile(full_path_, source_url_, + referrer_url_); #endif } |