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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/provided_file_system_info.cc

Issue 624903002: [fsp] Group arguments for mounting into a struct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a bug. Created 6 years, 2 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
7 namespace chromeos { 7 namespace chromeos {
8 namespace file_system_provider { 8 namespace file_system_provider {
9 9
10 ProvidedFileSystemInfo::ProvidedFileSystemInfo() {} 10 MountOptions::MountOptions() : writable(false), supports_notify_tag(false) {
11 }
12
13 MountOptions::MountOptions(const std::string& file_system_id,
14 const std::string& display_name)
15 : file_system_id(file_system_id),
16 display_name(display_name),
17 writable(false),
18 supports_notify_tag(false) {
19 }
20
21 ProvidedFileSystemInfo::ProvidedFileSystemInfo()
22 : writable_(false), supports_notify_tag_(false) {
23 }
11 24
12 ProvidedFileSystemInfo::ProvidedFileSystemInfo( 25 ProvidedFileSystemInfo::ProvidedFileSystemInfo(
13 const std::string& extension_id, 26 const std::string& extension_id,
14 const std::string& file_system_id, 27 const MountOptions& mount_options,
15 const std::string& display_name,
16 bool writable,
17 bool supports_notify_tag,
18 const base::FilePath& mount_path) 28 const base::FilePath& mount_path)
19 : extension_id_(extension_id), 29 : extension_id_(extension_id),
20 file_system_id_(file_system_id), 30 file_system_id_(mount_options.file_system_id),
21 display_name_(display_name), 31 display_name_(mount_options.display_name),
22 writable_(writable), 32 writable_(mount_options.writable),
23 supports_notify_tag_(supports_notify_tag), 33 supports_notify_tag_(mount_options.supports_notify_tag),
24 mount_path_(mount_path) { 34 mount_path_(mount_path) {
25 } 35 }
26 36
27 ProvidedFileSystemInfo::~ProvidedFileSystemInfo() {} 37 ProvidedFileSystemInfo::~ProvidedFileSystemInfo() {}
28 38
29 } // namespace file_system_provider 39 } // namespace file_system_provider
30 } // namespace chromeos 40 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698