Index: components/storage_monitor/volume_mount_watcher_win.cc |
diff --git a/components/storage_monitor/volume_mount_watcher_win.cc b/components/storage_monitor/volume_mount_watcher_win.cc |
index 6913f0384cb99bda49b47e502435b5b4ba1cd90c..168d2eb14dea19b21c28d6fd932dd62955dcce2c 100644 |
--- a/components/storage_monitor/volume_mount_watcher_win.cc |
+++ b/components/storage_monitor/volume_mount_watcher_win.cc |
@@ -70,7 +70,7 @@ DeviceType GetDeviceType(const base::string16& mount_point) { |
// Check device strings of the form "X:" and "\\.\X:" |
// For floppy drives, these will return strings like "/Device/Floppy0" |
base::string16 device = mount_point; |
- if (base::EndsWith(mount_point, L"\\", false)) |
+ if (base::EndsWith(mount_point, L"\\", base::CompareCase::INSENSITIVE_ASCII)) |
device = mount_point.substr(0, mount_point.length() - 1); |
base::string16 device_path; |
base::string16 device_path_slash; |