forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mac: Rework logic for excluding files from Time Machine backups.
This CL: 1) Re-enables MacUtilTest.TestExcludeFileFromBackups, which was disabled due to failures on a bot that does not exist anymore. 2) Extracts the logic used to check base::mac::SetFileBackupExclusion() into base::mac::GetFileBackupExclusion(). This logic was duplicated in tests. 3) Uses the approach in //sql for converting a base::FilePath into the CFURLRef needed by CSBackup{Is,Set}ItemExcluded. This approach does not rely on an autorelease pool. The conversion logic is extracted in base::mac::FilePathToCFURL(). Change-Id: I6ed2a3ded285e6904dccf7e21ade7ff5f68167a2 Reviewed-on: https://chromium-review.googlesource.com/c/1438035 Reviewed-by: Joshua Bell <jsbell@chromium.org> Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Victor Costan <pwnall@chromium.org> Auto-Submit: Victor Costan <pwnall@chromium.org> Cr-Commit-Position: refs/heads/master@{#626702}
- Loading branch information
Showing
8 changed files
with
68 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters