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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info .h" 5 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info .h"
6
6 #include "base/logging.h" 7 #include "base/logging.h"
7 8
8 namespace chromeos { 9 namespace chromeos {
9 namespace file_system_provider { 10 namespace file_system_provider {
10 11
11 MountOptions::MountOptions() 12 MountOptions::MountOptions()
12 : writable(false), 13 : writable(false),
13 supports_notify_tag(false), 14 supports_notify_tag(false),
14 opened_files_limit(0) { 15 opened_files_limit(0) {
15 } 16 }
16 17
17 MountOptions::MountOptions(const std::string& file_system_id, 18 MountOptions::MountOptions(const std::string& file_system_id,
18 const std::string& display_name) 19 const std::string& display_name)
19 : file_system_id(file_system_id), 20 : file_system_id(file_system_id),
20 display_name(display_name), 21 display_name(display_name),
21 writable(false), 22 writable(false),
22 supports_notify_tag(false), 23 supports_notify_tag(false),
23 opened_files_limit(0) { 24 opened_files_limit(0) {
24 } 25 }
25 26
26 ProvidedFileSystemInfo::ProvidedFileSystemInfo() 27 ProvidedFileSystemInfo::ProvidedFileSystemInfo()
27 : writable_(false), supports_notify_tag_(false) { 28 : writable_(false),
29 supports_notify_tag_(false),
30 configurable_(false),
31 source_(extensions::SOURCE_FILE) {
28 } 32 }
29 33
30 ProvidedFileSystemInfo::ProvidedFileSystemInfo( 34 ProvidedFileSystemInfo::ProvidedFileSystemInfo(
31 const std::string& extension_id, 35 const std::string& extension_id,
32 const MountOptions& mount_options, 36 const MountOptions& mount_options,
33 const base::FilePath& mount_path) 37 const base::FilePath& mount_path,
38 bool configurable,
39 extensions::FileSystemProviderSource source)
34 : extension_id_(extension_id), 40 : extension_id_(extension_id),
35 file_system_id_(mount_options.file_system_id), 41 file_system_id_(mount_options.file_system_id),
36 display_name_(mount_options.display_name), 42 display_name_(mount_options.display_name),
37 writable_(mount_options.writable), 43 writable_(mount_options.writable),
38 supports_notify_tag_(mount_options.supports_notify_tag), 44 supports_notify_tag_(mount_options.supports_notify_tag),
39 opened_files_limit_(mount_options.opened_files_limit), 45 opened_files_limit_(mount_options.opened_files_limit),
40 mount_path_(mount_path) { 46 mount_path_(mount_path),
47 configurable_(configurable),
48 source_(source) {
41 DCHECK_LE(0, mount_options.opened_files_limit); 49 DCHECK_LE(0, mount_options.opened_files_limit);
42 } 50 }
43 51
44 ProvidedFileSystemInfo::~ProvidedFileSystemInfo() {} 52 ProvidedFileSystemInfo::~ProvidedFileSystemInfo() {}
45 53
46 } // namespace file_system_provider 54 } // namespace file_system_provider
47 } // namespace chromeos 55 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698