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

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: Moved several modules to chromeos folder. Created 5 years, 5 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 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

Powered by Google App Engine
This is Rietveld 408576698