In order to manage device media gallery permissions, use a device id that is unique and persistent across device attachments. Therefore, extract device uuid from DiskInfo::InitializeFromResponse and use that identifier while dispatching media device attached notification event.
BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10830003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149099 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/chromeos/disks/disk_mount_manager.h b/chrome/browser/chromeos/disks/disk_mount_manager.h
index c4e1d6b..df6dd185 100644
--- a/chrome/browser/chromeos/disks/disk_mount_manager.h
+++ b/chrome/browser/chromeos/disks/disk_mount_manager.h
@@ -52,6 +52,7 @@
const std::string& file_path,
const std::string& device_label,
const std::string& drive_label,
+ const std::string& fs_uuid,
const std::string& system_path_prefix,
DeviceType device_type,
uint64 total_size_in_bytes,
@@ -85,6 +86,9 @@
// (e.g. "TransMemory")
const std::string& drive_label() const { return drive_label_; }
+ // Returns the file system uuid string.
+ const std::string& fs_uuid() const { return fs_uuid_; }
+
// Path of the system device this device's block is a part of.
// (e.g. /sys/devices/pci0000:00/.../8:0:0:0/)
const std::string& system_path_prefix() const {
@@ -125,6 +129,7 @@
std::string file_path_;
std::string device_label_;
std::string drive_label_;
+ std::string fs_uuid_;
std::string system_path_prefix_;
DeviceType device_type_;
uint64 total_size_in_bytes_;