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

Unified Diff: chrome/browser/storage_monitor/storage_monitor_linux.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_linux.cc
diff --git a/chrome/browser/storage_monitor/storage_monitor_linux.cc b/chrome/browser/storage_monitor/storage_monitor_linux.cc
index ca60edff3316a53641267f875e4cdd075614e55a..864c656dfbdaf741b612bd76fa79d0677756411b 100644
--- a/chrome/browser/storage_monitor/storage_monitor_linux.cc
+++ b/chrome/browser/storage_monitor/storage_monitor_linux.cc
@@ -290,15 +290,6 @@ bool StorageMonitorLinux::GetStorageInfoForPath(
return true;
}
-uint64 StorageMonitorLinux::GetStorageSize(const std::string& location) const {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
-
- MountMap::const_iterator mount_info = mount_info_map_.find(
- base::FilePath(location));
- return (mount_info != mount_info_map_.end()) ?
- mount_info->second.storage_info.total_size_in_bytes : 0;
-}
-
void StorageMonitorLinux::SetGetDeviceInfoCallbackForTest(
const GetDeviceInfoCallback& get_device_info_callback) {
get_device_info_callback_ = get_device_info_callback;

Powered by Google App Engine
This is Rietveld 408576698