diff --git a/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc b/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc index 08505e77fd0b..50a56c440a58 100644 --- a/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc +++ b/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc @@ -750,19 +750,8 @@ FileManagerPrivateInternalGetRecentFilesFunction::Run() { void FileManagerPrivateInternalGetRecentFilesFunction::OnGetRecentFiles( api::file_manager_private::SourceRestriction restriction, const std::vector& files) { - scoped_refptr file_system_context = - file_manager::util::GetFileSystemContextForRenderFrameHost( - chrome_details_.GetProfile(), render_frame_host()); - DCHECK(file_system_context.get()); - - const storage::ExternalFileSystemBackend* external_backend = - file_system_context->external_backend(); - DCHECK(external_backend); - file_manager::util::FileDefinitionList file_definition_list; for (const auto& file : files) { - DCHECK(external_backend->CanHandleType(file.url().type())); - // Filter out files from non-allowed sources. // We do this filtering here rather than in RecentModel so that the set of // files returned with some restriction is a subset of what would be