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

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

Issue 12211084: [Media Galleries] Populate volume metadata in ChromeOS/Linux (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add larger constructor, put linux data structures back Created 7 years, 9 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_info.cc
diff --git a/chrome/browser/storage_monitor/storage_info.cc b/chrome/browser/storage_monitor/storage_info.cc
index cb61d77c9268673f49b6dcb6c49cceee7f39beed..0b06c5e70e3d5e787598af446642a380c746cb1e 100644
--- a/chrome/browser/storage_monitor/storage_info.cc
+++ b/chrome/browser/storage_monitor/storage_info.cc
@@ -9,7 +9,8 @@ namespace chrome {
StorageInfo::StorageInfo() : total_size_in_bytes(0) {
}
-StorageInfo::StorageInfo(const std::string& id, const string16& device_name,
+StorageInfo::StorageInfo(const std::string& id,
+ const string16& device_name,
const base::FilePath::StringType& device_location)
: device_id(id),
name(device_name),
@@ -17,6 +18,22 @@ StorageInfo::StorageInfo(const std::string& id, const string16& device_name,
total_size_in_bytes(0) {
}
+StorageInfo::StorageInfo(const std::string& id,
+ const string16& device_name,
+ const base::FilePath::StringType& device_location,
+ const string16& label,
+ const string16& vendor,
+ const string16& model,
+ uint64 size_in_bytes)
+ : device_id(id),
+ name(device_name),
+ location(device_location),
+ storage_label(label),
+ vendor_name(vendor),
+ model_name(model),
+ total_size_in_bytes(size_in_bytes) {
+}
+
StorageInfo::~StorageInfo() {
}

Powered by Google App Engine
This is Rietveld 408576698