Commit 424e0563 authored by Karandeep Bhatia's avatar Karandeep Bhatia Committed by Commit Bot

Remove dependency of fileManagerPrivate on manifestTypes.

Types declared in manifestTypes are only meant to be used for manifest
parsing. Remove dependency of fileManagerPrivate on manifestTypes by
duplicating the FileSystemProviderSource enum.

BUG=1113513

Change-Id: I911ed3864cf282aa3e45b59674cf6b0cc5e6013b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2414892
Auto-Submit: Karan Bhatia <karandeepb@chromium.org>
Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Commit-Queue: Karan Bhatia <karandeepb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#808191}
parent 33345bc7
...@@ -590,16 +590,13 @@ FileManagerPrivateGetProvidersFunction::Run() { ...@@ -590,16 +590,13 @@ FileManagerPrivateGetProvidersFunction::Run() {
result_item.multiple_mounts = capabilities.multiple_mounts; result_item.multiple_mounts = capabilities.multiple_mounts;
switch (capabilities.source) { switch (capabilities.source) {
case SOURCE_FILE: case SOURCE_FILE:
result_item.source = result_item.source = api::file_manager_private::PROVIDER_SOURCE_FILE;
api::manifest_types::FILE_SYSTEM_PROVIDER_SOURCE_FILE;
break; break;
case SOURCE_DEVICE: case SOURCE_DEVICE:
result_item.source = result_item.source = api::file_manager_private::PROVIDER_SOURCE_DEVICE;
api::manifest_types::FILE_SYSTEM_PROVIDER_SOURCE_DEVICE;
break; break;
case SOURCE_NETWORK: case SOURCE_NETWORK:
result_item.source = result_item.source = api::file_manager_private::PROVIDER_SOURCE_NETWORK;
api::manifest_types::FILE_SYSTEM_PROVIDER_SOURCE_NETWORK;
break; break;
} }
result.push_back(std::move(result_item)); result.push_back(std::move(result_item));
......
...@@ -251,6 +251,12 @@ enum CrostiniEventType { ...@@ -251,6 +251,12 @@ enum CrostiniEventType {
unshare unshare
}; };
enum ProviderSource {
file,
device,
network
};
// A file task represents an action that the file manager can perform over the // A file task represents an action that the file manager can perform over the
// currently selected files. See // currently selected files. See
// chrome/browser/chromeos/extensions/file_manager/file_tasks.h for details // chrome/browser/chromeos/extensions/file_manager/file_tasks.h for details
...@@ -679,7 +685,7 @@ dictionary Provider { ...@@ -679,7 +685,7 @@ dictionary Provider {
boolean multipleMounts; boolean multipleMounts;
// Source of file systems' data. // Source of file systems' data.
manifestTypes.FileSystemProviderSource source; ProviderSource source;
}; };
// Information about a Linux package in response to GetLinuxPackageInfo. // Information about a Linux package in response to GetLinuxPackageInfo.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment