API delegate for non-native file systems
The Chrome OS Files app can provide non-native file systems, like
Drive. Unrelated APIs like file_handlers can access files, including
files from non-native FSs. This CL creates NonNativeFileSystemDelegate
to handle queries about non-native FSs, so that the API itself doesn't
have to depend on the FS logic in //chrome/browser/chromeos.
In AppShell, neither non-native FSs nor the Files app exist. We'd like
to extract the file_handlers API to //extensions. Dropping its use of
the //chrome/browser/chromeos file manager helps.
BUG=679870
Review-Url: https://codereview.chromium.org/2666763005
Cr-Commit-Position: refs/heads/master@{#448499}
diff --git a/chrome/browser/extensions/BUILD.gn b/chrome/browser/extensions/BUILD.gn
index cc23708..94da5aa7 100644
--- a/chrome/browser/extensions/BUILD.gn
+++ b/chrome/browser/extensions/BUILD.gn
@@ -218,6 +218,8 @@
"api/file_handlers/directory_util.h",
"api/file_handlers/mime_util.cc",
"api/file_handlers/mime_util.h",
+ "api/file_handlers/non_native_file_system_delegate_chromeos.cc",
+ "api/file_handlers/non_native_file_system_delegate_chromeos.h",
"api/file_system/file_system_api.cc",
"api/file_system/file_system_api.h",
"api/font_settings/font_settings_api.cc",