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

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

Issue 1137383002: Show the eject button only for removabled and file handlers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tests. 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 db8d82dd5a4cbeaaa1a7bf39f96d48c68143ebb2..a35c5c5cb558899e0d2e55b10f8ec27bb307fbdf 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
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "chrome/browser/chromeos/file_system_provider/provided_file_system_info.h"
+
#include "base/logging.h"
namespace chromeos {
@@ -24,20 +25,27 @@ MountOptions::MountOptions(const std::string& file_system_id,
}
ProvidedFileSystemInfo::ProvidedFileSystemInfo()
- : writable_(false), supports_notify_tag_(false) {
+ : writable_(false),
+ supports_notify_tag_(false),
+ configurable_(false),
+ source_(extensions::SOURCE_FILE) {
}
ProvidedFileSystemInfo::ProvidedFileSystemInfo(
const std::string& extension_id,
const MountOptions& mount_options,
- const base::FilePath& mount_path)
+ const base::FilePath& mount_path,
+ bool configurable,
+ extensions::FileSystemProviderSource source)
: extension_id_(extension_id),
file_system_id_(mount_options.file_system_id),
display_name_(mount_options.display_name),
writable_(mount_options.writable),
supports_notify_tag_(mount_options.supports_notify_tag),
opened_files_limit_(mount_options.opened_files_limit),
- mount_path_(mount_path) {
+ mount_path_(mount_path),
+ configurable_(configurable),
+ source_(source) {
DCHECK_LE(0, mount_options.opened_files_limit);
}

Powered by Google App Engine
This is Rietveld 408576698