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

Unified Diff: chrome/browser/chromeos/file_system_provider/provided_file_system_info.cc

Issue 1093383002: [WIP] Provided file system from NACL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Various cleanups Created 5 years, 7 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/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

Powered by Google App Engine
This is Rietveld 408576698