Move fileSystem API FilePicker class to own file
The chrome.fileSystem API impl has a FilePicker class used to create
and show a "Choose a file/directory" dialog. It's not tiny and it
manages its own lifetime, so I'm extracting it into a separate file.
This will unblock https://codereview.chromium.org/2934143002/ by
allowing us to easily override the file picking behavior in extension
tests without having to depend on Chrome-specific code.
BUG=729713
[email protected]
Review-Url: https://codereview.chromium.org/2967223002
Cr-Commit-Position: refs/heads/master@{#484673}
diff --git a/chrome/browser/extensions/BUILD.gn b/chrome/browser/extensions/BUILD.gn
index b9a33b03..623dabe 100644
--- a/chrome/browser/extensions/BUILD.gn
+++ b/chrome/browser/extensions/BUILD.gn
@@ -192,6 +192,8 @@
"api/feedback_private/feedback_service.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_entry_picker.cc",
+ "api/file_system/file_entry_picker.h",
"api/file_system/file_system_api.cc",
"api/file_system/file_system_api.h",
"api/font_settings/font_settings_api.cc",