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

Side by Side Diff: content/browser/download/file_metadata_mac.mm

Issue 817153002: Switch users of foundation_util.h to include it directly and clean up uses of mac_util.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/download/file_metadata_mac.h" 5 #include "content/browser/download/file_metadata_mac.h"
6 6
7 #include <ApplicationServices/ApplicationServices.h> 7 #include <ApplicationServices/ApplicationServices.h>
8 #include <Foundation/Foundation.h> 8 #include <Foundation/Foundation.h>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/mac/foundation_util.h"
12 #include "base/mac/mac_logging.h" 13 #include "base/mac/mac_logging.h"
13 #include "base/mac/mac_util.h" 14 #include "base/mac/mac_util.h"
14 #include "base/mac/scoped_cftyperef.h" 15 #include "base/mac/scoped_cftyperef.h"
15 #include "url/gurl.h" 16 #include "url/gurl.h"
16 17
17 namespace content { 18 namespace content {
18 19
19 // As of Mac OS X 10.4 ("Tiger"), files can be tagged with metadata describing 20 // As of Mac OS X 10.4 ("Tiger"), files can be tagged with metadata describing
20 // various attributes. Metadata is integrated with the system's Spotlight 21 // various attributes. Metadata is integrated with the system's Spotlight
21 // feature and is searchable. Ordinarily, metadata can only be set by 22 // feature and is searchable. Ordinarily, metadata can only be set by
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 OSStatus os_error = LSSetItemAttribute(&file_ref, kLSRolesAll, 160 OSStatus os_error = LSSetItemAttribute(&file_ref, kLSRolesAll,
160 kLSItemQuarantineProperties, 161 kLSItemQuarantineProperties,
161 quarantine_properties); 162 quarantine_properties);
162 if (os_error != noErr) { 163 if (os_error != noErr) {
163 OSSTATUS_LOG(WARNING, os_error) 164 OSSTATUS_LOG(WARNING, os_error)
164 << "Unable to set quarantine attributes on file " << file.value(); 165 << "Unable to set quarantine attributes on file " << file.value();
165 } 166 }
166 } 167 }
167 168
168 } // namespace content 169 } // namespace content
OLDNEW
« no previous file with comments | « components/crash/app/breakpad_mac.mm ('k') | content/browser/web_contents/web_drag_source_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698