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

Issue 2352763006: On macOS 10.10+, use NSURL methods in quarantine_mac. (Closed)

Created:
4 years, 3 months ago by erikchen
Modified:
4 years, 2 months ago
CC:
asanka, chromium-reviews, darin-cc_chromium.org, jam
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

On macOS 10.10+, use NSURL methods in quarantine_mac. FSRef has been deprecated since macOS 10.8, but the replacement for kLSItemQuarantineProperties was not available until macOS 10.10+. Keep the old logic for macOS 10.9, but use non-deprecated methods in macOS 10.10+. This CL adds a test for the new logic. BUG=650790 Committed: https://crrev.com/1ad622362c0e3aafc09e34eec49079230c3f5d77 Cr-Commit-Position: refs/heads/master@{#421660}

Patch Set 1 #

Patch Set 2 : More changes. #

Patch Set 3 : clang format. #

Patch Set 4 : More comments. #

Patch Set 5 : minor fixes. #

Patch Set 6 : minor fix. #

Patch Set 7 : Rebase. #

Patch Set 8 : More rebase errors. #

Patch Set 9 : More cleanup. #

Patch Set 10 : Rename test. #

Patch Set 11 : use static cast. #

Patch Set 12 : Add debug logging. #

Patch Set 13 : More logging. #

Patch Set 14 : more logging. #

Patch Set 15 : more debugging. #

Patch Set 16 : test #

Patch Set 17 : more debugging. #

Patch Set 18 : get stacktrace on crash. #

Patch Set 19 : Fix test. #

Patch Set 20 : add ifdef. #

Total comments: 10

Patch Set 21 : Comments from avi. #

Patch Set 22 : Fix logic. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+255 lines, -41 lines) Patch
M content/browser/download/quarantine_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +146 lines, -41 lines 0 comments Download
A content/browser/download/quarantine_mac_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +108 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 61 (54 generated)
erikchen
avi: Please review.
4 years, 2 months ago (2016-09-27 20:38:19 UTC) #48
Avi (use Gerrit)
LGTM with helper nits. https://codereview.chromium.org/2352763006/diff/380001/content/browser/download/quarantine_mac.mm File content/browser/download/quarantine_mac.mm (right): https://codereview.chromium.org/2352763006/diff/380001/content/browser/download/quarantine_mac.mm#newcode37 content/browser/download/quarantine_mac.mm:37: CFTypeRef quarantine_properties_base = NULL; Can ...
4 years, 2 months ago (2016-09-28 02:32:14 UTC) #51
asanka
Thanks! LGTM stamp from owners.
4 years, 2 months ago (2016-09-28 16:22:19 UTC) #53
erikchen
https://codereview.chromium.org/2352763006/diff/380001/content/browser/download/quarantine_mac.mm File content/browser/download/quarantine_mac.mm (right): https://codereview.chromium.org/2352763006/diff/380001/content/browser/download/quarantine_mac.mm#newcode37 content/browser/download/quarantine_mac.mm:37: CFTypeRef quarantine_properties_base = NULL; On 2016/09/28 02:32:13, Avi wrote: ...
4 years, 2 months ago (2016-09-28 19:59:00 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2352763006/420001
4 years, 2 months ago (2016-09-28 20:48:08 UTC) #57
commit-bot: I haz the power
Committed patchset #22 (id:420001)
4 years, 2 months ago (2016-09-28 22:25:51 UTC) #59
commit-bot: I haz the power
4 years, 2 months ago (2016-09-28 22:28:17 UTC) #61
Message was sent while issue was closed.
Patchset 22 (id:??) landed as
https://crrev.com/1ad622362c0e3aafc09e34eec49079230c3f5d77
Cr-Commit-Position: refs/heads/master@{#421660}

Powered by Google App Engine
This is Rietveld 408576698