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

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

Issue 220037: Add kMDItemWhereFroms metadata attribute to downloaded files. Combine with qu... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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/cocoa/file_metadata.mm ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_file.cc
===================================================================
--- chrome/browser/download/download_file.cc (revision 27123)
+++ chrome/browser/download/download_file.cc (working copy)
@@ -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 @@
// 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
}
« no previous file with comments | « chrome/browser/cocoa/file_metadata.mm ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698