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

Unified Diff: chrome/browser/storage_monitor/storage_monitor_win.cc

Issue 13524003: [StorageMonitor] Remove GetStorageSize. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Compiling... Created 7 years, 8 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: 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,
« no previous file with comments | « chrome/browser/storage_monitor/storage_monitor_win.h ('k') | chrome/browser/storage_monitor/test_storage_monitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698