[M120][Tizen][Onscreen] Fix build errors for TV profile
[platform/framework/web/chromium-efl.git] / chrome / browser / icon_loader_fuchsia.cc
1 // Copyright 2021 The Chromium Authors
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
9 #include <utility>
10
11 #include "base/functional/bind.h"
12 #include "base/functional/callback.h"
13 #include "base/location.h"
14 #include "base/memory/scoped_refptr.h"
15 #include "base/notreached.h"
16 #include "base/task/single_thread_task_runner.h"
17 #include "base/task/thread_pool.h"
18 #include "ui/gfx/image/image.h"
19
20 // static
21 IconLoader::IconGroup IconLoader::GroupForFilepath(
22     const base::FilePath& file_path) {
23   NOTIMPLEMENTED_LOG_ONCE();
24   return file_path.Extension();
25 }
26
27 // static
28 scoped_refptr<base::TaskRunner> IconLoader::GetReadIconTaskRunner() {
29   NOTIMPLEMENTED_LOG_ONCE();
30   return base::ThreadPool::CreateTaskRunner(traits());
31 }
32
33 void IconLoader::ReadIcon() {
34   NOTIMPLEMENTED_LOG_ONCE();
35
36   // Report back that no icon was found.
37   target_task_runner_->PostTask(
38       FROM_HERE, base::BindOnce(std::move(callback_), gfx::Image(), group_));
39   delete this;
40 }