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

Unified Diff: chrome/common/extensions/image_writer/image_writer_util_mac.h

Issue 375703004: Changes Mac removable device listing to include all attached USB drives. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes minor style issues and documentation. Created 6 years, 5 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
Index: chrome/common/extensions/image_writer/image_writer_util_mac.h
diff --git a/chrome/common/extensions/image_writer/image_writer_util_mac.h b/chrome/common/extensions/image_writer/image_writer_util_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..5b1c82c0b995d7b9b2f24d03b4759bcf9efce79a
--- /dev/null
+++ b/chrome/common/extensions/image_writer/image_writer_util_mac.h
@@ -0,0 +1,19 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_COMMON_EXTENSIONS_IMAGE_WRITER_IMAGE_WRITER_UTIL_MAC_H
+#define CHROME_COMMON_EXTENSIONS_IMAGE_WRITER_IMAGE_WRITER_UTIL_MAC_H
+
+#include <IOKit/IOKitLib.h>
+
+namespace extensions {
+
+// Determines whether the object from the IO registry is a USB mass storage
+// device. It does this by reading the ancestors of the object to see if any
+// is of the USB mass-storage class.
+bool IsUsbDevice(io_object_t disk_obj);
+
+} // namespace extensions
+
+#endif // CHROME_COMMON_EXTENSIONS_IMAGE_WRITER_IMAGE_WRITER_UTIL_MAC_H
« no previous file with comments | « chrome/common/extensions/image_writer/OWNERS ('k') | chrome/common/extensions/image_writer/image_writer_util_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698