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

Unified Diff: chrome/utility/image_writer/image_writer_stub.cc

Issue 294163008: Adds USB writing for OS X. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@list-devices
Patch Set: Fixes windows compilation. Created 6 years, 6 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
« no previous file with comments | « chrome/utility/image_writer/image_writer_mac.cc ('k') | chrome/utility/image_writer/image_writer_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/image_writer/image_writer_stub.cc
diff --git a/chrome/utility/image_writer/image_writer_stub.cc b/chrome/utility/image_writer/image_writer_stub.cc
index 264de9d54c2b9ec758605d09a5c313475e9aee5f..036534551f82133e8d0602faa2e7922a6f74e4ed 100644
--- a/chrome/utility/image_writer/image_writer_stub.cc
+++ b/chrome/utility/image_writer/image_writer_stub.cc
@@ -14,9 +14,17 @@ bool ImageWriter::IsValidDevice() {
return false;
}
-bool ImageWriter::UnmountVolumes() {
+void ImageWriter::UnmountVolumes(const base::Closure& continuation) {
NOTIMPLEMENTED();
- return false;
+ return;
+}
+
+bool ImageWriter::OpenDevice() {
+ device_file_.Initialize(
+ device_path_,
+ base::File::FLAG_OPEN | base::File::FLAG_READ | base::File::FLAG_WRITE |
+ base::File::FLAG_EXCLUSIVE_READ | base::File::FLAG_EXCLUSIVE_WRITE);
+ return device_file_.IsValid();
}
} // namespace image_writer
« no previous file with comments | « chrome/utility/image_writer/image_writer_mac.cc ('k') | chrome/utility/image_writer/image_writer_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698