[M120][Tizen][Onscreen] Fix build errors for TV profile
[platform/framework/web/chromium-efl.git] / chrome / browser / shell_integration_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/1226243): Implement default-browser & scheme-handler
6 // integration.
7
8 #include "chrome/browser/shell_integration.h"
9
10 #include "base/notreached.h"
11
12 namespace shell_integration {
13
14 bool SetAsDefaultBrowser() {
15   NOTIMPLEMENTED_LOG_ONCE();
16   return false;
17 }
18
19 bool SetAsDefaultClientForScheme(const std::string& scheme) {
20   NOTIMPLEMENTED_LOG_ONCE();
21   return false;
22 }
23
24 std::u16string GetApplicationNameForScheme(const GURL& url) {
25   NOTIMPLEMENTED_LOG_ONCE();
26   return {};
27 }
28
29 DefaultWebClientState GetDefaultBrowser() {
30   // TODO(crbug.com/1226243): Chromium is effectively the default until Fuchsia
31   // implements a picker.
32   return DefaultWebClientState::IS_DEFAULT;
33 }
34
35 bool IsFirefoxDefaultBrowser() {
36   // TODO(crbug.com/1226243): Chromium is effectively the default until Fuchsia
37   // implements a picker.
38   return false;
39 }
40
41 DefaultWebClientState IsDefaultClientForScheme(const std::string& scheme) {
42   NOTIMPLEMENTED_LOG_ONCE();
43   return DefaultWebClientState::UNKNOWN_DEFAULT;
44 }
45
46 namespace internal {
47
48 DefaultWebClientSetPermission GetPlatformSpecificDefaultWebClientSetPermission(
49     WebClientSetMethod method) {
50   return SET_DEFAULT_UNATTENDED;
51 }
52
53 }  // namespace internal
54
55 }  // namespace shell_integration