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 e09e7809d7a21c678ca3f8180446a8e83fe39641..8b15e55790ec12b97b2615eb854439e51fb046a3 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 |
@@ -30,21 +30,31 @@ ProvidedFileSystemInfo::ProvidedFileSystemInfo() |
} |
ProvidedFileSystemInfo::ProvidedFileSystemInfo( |
- const std::string& extension_id, |
+ const std::string& source_id, |
const MountOptions& mount_options, |
- const base::FilePath& mount_path) |
- : extension_id_(extension_id), |
+ const base::FilePath& mount_path, |
+ 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), |
source_(mount_options.source), |
supports_notify_tag_(mount_options.supports_notify_tag), |
opened_files_limit_(mount_options.opened_files_limit), |
- mount_path_(mount_path) { |
+ mount_path_(mount_path), |
+ 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 |