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

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

Issue 382023002: Changes Windows removable drive listing to include all USB drives. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleans up some more unnecessary changes, no really, and uses an enum instead of int for the USB Bus… 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
« no previous file with comments | « chrome/browser/extensions/api/image_writer_private/removable_storage_provider_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/image_writer/image_writer_win.cc
diff --git a/chrome/utility/image_writer/image_writer_win.cc b/chrome/utility/image_writer/image_writer_win.cc
index f8a369f54d2939ff8118e95824c91d90efb6bbbf..1e6486c241e5d4e60cc1c74b1f67716c080ab94b 100644
--- a/chrome/utility/image_writer/image_writer_win.cc
+++ b/chrome/utility/image_writer/image_writer_win.cc
@@ -52,7 +52,8 @@ bool ImageWriter::IsValidDevice() {
STORAGE_DEVICE_DESCRIPTOR* device_descriptor =
reinterpret_cast<STORAGE_DEVICE_DESCRIPTOR*>(output_buf.get());
- return device_descriptor->RemovableMedia == TRUE;
+ return device_descriptor->RemovableMedia == TRUE ||
+ device_descriptor->BusType == BusTypeUsb;
}
bool ImageWriter::OpenDevice() {
« no previous file with comments | « chrome/browser/extensions/api/image_writer_private/removable_storage_provider_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698