Index: chrome/browser/chromeos/file_system_provider/provided_file_system_info.cc |
diff --git a/chrome/browser/chromeos/file_system_provider/provided_file_system_info.cc b/chrome/browser/chromeos/file_system_provider/provided_file_system_info.cc |
index a35c5c5cb558899e0d2e55b10f8ec27bb307fbdf..f3dab3c89c0e92af4329ec2ea9fb87235e5d250d 100644 |
--- a/chrome/browser/chromeos/file_system_provider/provided_file_system_info.cc |
+++ b/chrome/browser/chromeos/file_system_provider/provided_file_system_info.cc |
@@ -32,12 +32,13 @@ ProvidedFileSystemInfo::ProvidedFileSystemInfo() |
} |
ProvidedFileSystemInfo::ProvidedFileSystemInfo( |
- const std::string& extension_id, |
+ const std::string& source_id, |
const MountOptions& mount_options, |
const base::FilePath& mount_path, |
bool configurable, |
- extensions::FileSystemProviderSource source) |
- : extension_id_(extension_id), |
+ extensions::FileSystemProviderSource source, |
+ Source_Type type ) |
+ : source_id_(source_id), |
file_system_id_(mount_options.file_system_id), |
display_name_(mount_options.display_name), |
writable_(mount_options.writable), |
@@ -45,11 +46,20 @@ ProvidedFileSystemInfo::ProvidedFileSystemInfo( |
opened_files_limit_(mount_options.opened_files_limit), |
mount_path_(mount_path), |
configurable_(configurable), |
- source_(source) { |
+ source_(source), |
+ source_type_(type) { |
DCHECK_LE(0, mount_options.opened_files_limit); |
} |
ProvidedFileSystemInfo::~ProvidedFileSystemInfo() {} |
+const std::string ProvidedFileSystemInfo::get_source_id( |
+ Source_Type type) const { |
+ if (type != source_type_) |
+ return std::string(); |
+ |
+ return source_id_; |
+} |
+ |
} // namespace file_system_provider |
} // namespace chromeos |