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: chrome/browser/extensions/api/system_info_storage/storage_info_provider_mac.cc

Issue 10907151: Extensions Docs Server: Enum values do not show up if enum is a type (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rtcPrivate fix Created 8 years, 3 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_mac.cc
diff --git a/chrome/browser/extensions/api/system_info_storage/storage_info_provider_mac.cc b/chrome/browser/extensions/api/system_info_storage/storage_info_provider_mac.cc
index 53537d7b5b2243ff20863662aa45d47d8f0591c0..2ae45895a06757216ed68d19f13aad7618423a0a 100644
--- a/chrome/browser/extensions/api/system_info_storage/storage_info_provider_mac.cc
+++ b/chrome/browser/extensions/api/system_info_storage/storage_info_provider_mac.cc
@@ -79,7 +79,8 @@ bool StorageInfoProviderMac::QueryUnitInfo(const std::string& id,
type = dev_path_to_type_map_[volume_dev].empty() ?
systeminfo::kStorageTypeUnknown : dev_path_to_type_map_[volume_dev];
}
- info->type = type;
+ info->type =
+ api::experimental_system_info_storage::FromStorageUnitTypeString(type);
// TODO(joshuagl): we're reporting different values than Disk Utility.
// Is there an alternative API to get this information that doesn't use
// statfs? NSFileManager's attributesOfFileSystemForPath uses statfs.

Powered by Google App Engine
This is Rietveld 408576698