summaryrefslogtreecommitdiffstats
path: root/chrome/chrome_utility.gypi
diff options
context:
space:
mode:
authorhaven@chromium.org <haven@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-18 23:47:29 +0000
committerhaven@chromium.org <haven@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-18 23:47:29 +0000
commit4e100e85f041632b1de3fa5513cb582b42d97491 (patch)
tree68517ff608634d20026f4565e398e9e85a8a796f /chrome/chrome_utility.gypi
parent57adb980e199f689ed57c0b4c346255129c675d6 (diff)
downloadchromium_src-4e100e85f041632b1de3fa5513cb582b42d97491.zip
chromium_src-4e100e85f041632b1de3fa5513cb582b42d97491.tar.gz
chromium_src-4e100e85f041632b1de3fa5513cb582b42d97491.tar.bz2
Adds USB writing for OS X.
To support imageWriterPrivate on Mac for the Chromebook Recovery Tool we will have to write to USB drives on Mac. OS X allows us to open a single FD with elevated privileges through running the authopen command. Unmounting and claiming the disk are a bit more complicated as they require use of the Disk Arbitration framework. Disk Arbitration is an asynchronous interface. In order to simplify the code we use a mutex to block. The core logic is derived from the previous recovery tool. See googleclient/chrome/chromeos_recovery/mac/ChromeOSRecovery/AppController.mm in the internal Google repositories. BUG=376398 BUG=318451 Review URL: https://codereview.chromium.org/294163008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278194 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome_utility.gypi')
-rw-r--r--chrome/chrome_utility.gypi5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/chrome_utility.gypi b/chrome/chrome_utility.gypi
index 0a23b6f..c76986a 100644
--- a/chrome/chrome_utility.gypi
+++ b/chrome/chrome_utility.gypi
@@ -41,12 +41,15 @@
'utility/cloud_print/pwg_encoder.h',
'utility/extensions/unpacker.cc',
'utility/extensions/unpacker.h',
+ 'utility/image_writer/disk_unmounter_mac.cc',
+ 'utility/image_writer/disk_unmounter_mac.h',
'utility/image_writer/error_messages.cc',
'utility/image_writer/error_messages.h',
'utility/image_writer/image_writer.cc',
'utility/image_writer/image_writer.h',
'utility/image_writer/image_writer_handler.cc',
'utility/image_writer/image_writer_handler.h',
+ 'utility/image_writer/image_writer_mac.cc',
'utility/image_writer/image_writer_win.cc',
'utility/importer/bookmark_html_reader.cc',
'utility/importer/bookmark_html_reader.h',
@@ -138,7 +141,7 @@
['exclude', '^utility/profile_import_handler\.cc'],
],
}],
- ['OS!="win"', {
+ ['OS!="win" and OS!="mac"', {
'sources': [
'utility/image_writer/image_writer_stub.cc',
]