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

Unified Diff: chrome/browser/extensions/api/system_info_storage/storage_info_provider_linux.cc

Issue 11827026: Overhaul JSON Schema Compiler to support a number of features required to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 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/extensions/api/system_info_storage/storage_info_provider_linux.cc
diff --git a/chrome/browser/extensions/api/system_info_storage/storage_info_provider_linux.cc b/chrome/browser/extensions/api/system_info_storage/storage_info_provider_linux.cc
index 0a6c3502483e296904d988d023a6e9206aacf5aa..507fbb08667e3ba11634ce9bbc9938f7b1c86df2 100644
--- a/chrome/browser/extensions/api/system_info_storage/storage_info_provider_linux.cc
+++ b/chrome/browser/extensions/api/system_info_storage/storage_info_provider_linux.cc
@@ -10,7 +10,7 @@
namespace extensions {
using api::experimental_system_info_storage::StorageUnitInfo;
-using api::experimental_system_info_storage::FromStorageUnitTypeString;
+using api::experimental_system_info_storage::ParseStorageUnitType;
using chrome::ScopedUdevDeviceObject;
namespace {
@@ -65,7 +65,7 @@ bool StorageInfoProviderLinux::QueryUnitInfo(const std::string& mount_path,
}
// Currently the mount path is used as the identifier of a storage unit.
info->id = mount_path;
- info->type = FromStorageUnitTypeString(type);
+ info->type = ParseStorageUnitType(type);
info->capacity = static_cast<double>(fs_info.f_blocks) * fs_info.f_bsize;
info->available_capacity =
static_cast<double>(fs_info.f_bavail) * fs_info.f_bsize;

Powered by Google App Engine
This is Rietveld 408576698