1 // Copyright 2020 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "chrome/browser/apps/app_service/intent_util.h" 6 7 #include "chrome/browser/apps/app_service/file_utils.h" 8 #include "components/services/app_service/public/cpp/intent_util.h" 9 10 namespace apps_util { 11 12 // TODO(crbug.com/853604): Make this not link to file manager extension if 13 // possible. CreateShareIntentFromFiles(Profile * profile,const std::vector<base::FilePath> & file_paths,const std::vector<std::string> & mime_types)14apps::mojom::IntentPtr CreateShareIntentFromFiles( 15 Profile* profile, 16 const std::vector<base::FilePath>& file_paths, 17 const std::vector<std::string>& mime_types) { 18 auto file_urls = apps::GetFileUrls(profile, file_paths); 19 return CreateShareIntentFromFiles(file_urls, mime_types); 20 } 21 22 } // namespace apps_util 23