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

Unified Diff: components/storage_monitor/volume_mount_watcher_win.cc

Issue 1410333006: Enough hacks to make wstring printfs unneeded (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reverting another unneeded change. Created 5 years, 2 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: 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 168d2eb14dea19b21c28d6fd932dd62955dcce2c..9fbd3a08cba71cf057f90e37a9e4c7a61916249c 100644
--- a/components/storage_monitor/volume_mount_watcher_win.cc
+++ b/components/storage_monitor/volume_mount_watcher_win.cc
@@ -237,7 +237,8 @@ void EjectDeviceInThreadPool(
base::Bind(callback, StorageMonitor::EJECT_FAILURE));
return;
}
- base::SStringPrintf(&volume_name, L"\\\\.\\%lc:", drive_letter);
+ // safe
+ //base::SStringPrintf(&volume_name, L"\\\\.\\%lc:", drive_letter);
base::win::ScopedHandle volume_handle(CreateFile(
volume_name.c_str(),
« no previous file with comments | « components/os_crypt/ie7_password_win.cc ('k') | content/browser/accessibility/accessibility_tree_formatter_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698