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

Unified Diff: chrome/browser/system_monitor/removable_storage_notifications.cc

Issue 12211084: [Media Galleries] Populate volume metadata in ChromeOS/Linux (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 10 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/system_monitor/removable_storage_notifications.cc
diff --git a/chrome/browser/system_monitor/removable_storage_notifications.cc b/chrome/browser/system_monitor/removable_storage_notifications.cc
index 11d5fff73bea23521c37352aba4b9ec10a99ffe9..548bd6d0eab5d91411ce0475eeee3e92a1471441 100644
--- a/chrome/browser/system_monitor/removable_storage_notifications.cc
+++ b/chrome/browser/system_monitor/removable_storage_notifications.cc
@@ -13,7 +13,8 @@ namespace chrome {
static RemovableStorageNotifications*
g_removable_storage_notifications = NULL;
-RemovableStorageNotifications::StorageInfo::StorageInfo() {
+RemovableStorageNotifications::StorageInfo::StorageInfo()
+ : total_size_in_bytes(0) {
}
RemovableStorageNotifications::StorageInfo::StorageInfo(
@@ -22,7 +23,8 @@ RemovableStorageNotifications::StorageInfo::StorageInfo(
const base::FilePath::StringType& device_location)
: device_id(id),
name(device_name),
- location(device_location) {
+ location(device_location),
+ total_size_in_bytes(0) {
}
RemovableStorageNotifications::Receiver::~Receiver() {
@@ -36,9 +38,8 @@ class RemovableStorageNotifications::ReceiverImpl
virtual ~ReceiverImpl() {}
- void ProcessAttach(const std::string& id,
- const string16& name,
- const base::FilePath::StringType& location) OVERRIDE;
+ void ProcessAttach(
+ const RemovableStorageNotifications::StorageInfo& info) OVERRIDE;
void ProcessDetach(const std::string& id) OVERRIDE;
@@ -47,11 +48,8 @@ class RemovableStorageNotifications::ReceiverImpl
};
void RemovableStorageNotifications::ReceiverImpl::ProcessAttach(
- const std::string& id,
- const string16& name,
- const base::FilePath::StringType& location) {
- notifications_->ProcessAttach(
- RemovableStorageNotifications::StorageInfo(id, name, location));
+ const RemovableStorageNotifications::StorageInfo& info) {
+ notifications_->ProcessAttach(info);
}
void RemovableStorageNotifications::ReceiverImpl::ProcessDetach(

Powered by Google App Engine
This is Rietveld 408576698