| 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(
|
|
|