Index: chrome/browser/storage_monitor/storage_monitor_win.cc |
diff --git a/chrome/browser/storage_monitor/storage_monitor_win.cc b/chrome/browser/storage_monitor/storage_monitor_win.cc |
index 63aca46321ca20f4c4f7515f0af374bf724b14db..f7e03c0ef55545cebd9506aa338834ca06c5399b 100644 |
--- a/chrome/browser/storage_monitor/storage_monitor_win.cc |
+++ b/chrome/browser/storage_monitor/storage_monitor_win.cc |
@@ -79,8 +79,8 @@ bool StorageMonitorWin::GetStorageInfoForPath(const base::FilePath& path, |
string16 location; |
std::string unique_id; |
string16 name; |
- bool removable; |
- uint64 total_size_in_bytes; |
+ bool removable = false; |
+ uint64 total_size_in_bytes = 0; |
if (!GetDeviceInfo(path, &location, &unique_id, &name, &removable, |
&total_size_in_bytes)) { |
return false; |
@@ -116,15 +116,11 @@ bool StorageMonitorWin::GetStorageInfoForPath(const base::FilePath& path, |
device_info->device_id = device_id; |
device_info->name = name; |
device_info->location = location; |
+ device_info->total_size_in_bytes = total_size_in_bytes; |
} |
return true; |
} |
-uint64 StorageMonitorWin::GetStorageSize( |
- const base::FilePath::StringType& location) const { |
- return volume_mount_watcher_->GetStorageSize(location); |
-} |
- |
bool StorageMonitorWin::GetMTPStorageInfoFromDeviceId( |
const std::string& storage_device_id, |
string16* device_location, |