Avi Drissman | 4a8573c | 2022-09-09 19:35:54 | [diff] [blame] | 1 | // Copyright 2021 The Chromium Authors |
Wez | 3fbbced | 2021-07-26 13:13:27 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | // TODO(crbug.com/1226242): Implement support for downloads under Fuchsia. |
| 6 | |
| 7 | #include "chrome/browser/icon_loader.h" |
| 8 | |
Greg Thompson | c4eb6f9 | 2022-02-09 14:12:09 | [diff] [blame] | 9 | #include <utility> |
| 10 | |
Avi Drissman | 02e49e58 | 2023-01-07 01:23:18 | [diff] [blame] | 11 | #include "base/functional/bind.h" |
| 12 | #include "base/functional/callback.h" |
Greg Thompson | c4eb6f9 | 2022-02-09 14:12:09 | [diff] [blame] | 13 | #include "base/location.h" |
| 14 | #include "base/memory/scoped_refptr.h" |
Wez | 3fbbced | 2021-07-26 13:13:27 | [diff] [blame] | 15 | #include "base/notreached.h" |
Greg Thompson | c4eb6f9 | 2022-02-09 14:12:09 | [diff] [blame] | 16 | #include "base/task/single_thread_task_runner.h" |
| 17 | #include "base/task/thread_pool.h" |
| 18 | #include "ui/gfx/image/image.h" |
Wez | 3fbbced | 2021-07-26 13:13:27 | [diff] [blame] | 19 | |
| 20 | // static |
| 21 | IconLoader::IconGroup IconLoader::GroupForFilepath( |
| 22 | const base::FilePath& file_path) { |
| 23 | NOTIMPLEMENTED_LOG_ONCE(); |
Greg Thompson | c4eb6f9 | 2022-02-09 14:12:09 | [diff] [blame] | 24 | return file_path.Extension(); |
Wez | 3fbbced | 2021-07-26 13:13:27 | [diff] [blame] |
|