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.
5 // TODO(crbug.com/1226243): Implement default-browser & scheme-handler
8 #include "chrome/browser/shell_integration.h"
10 #include "base/notreached.h"
12 namespace shell_integration {
14 bool SetAsDefaultBrowser() {
15 NOTIMPLEMENTED_LOG_ONCE();
19 bool SetAsDefaultClientForScheme(const std::string& scheme) {
20 NOTIMPLEMENTED_LOG_ONCE();
24 std::u16string GetApplicationNameForScheme(const GURL& url) {
25 NOTIMPLEMENTED_LOG_ONCE();
29 DefaultWebClientState GetDefaultBrowser() {
30 // TODO(crbug.com/1226243): Chromium is effectively the default until Fuchsia
31 // implements a picker.
32 return DefaultWebClientState::IS_DEFAULT;
35 bool IsFirefoxDefaultBrowser() {
36 // TODO(crbug.com/1226243): Chromium is effectively the default until Fuchsia
37 // implements a picker.
41 DefaultWebClientState IsDefaultClientForScheme(const std::string& scheme) {
42 NOTIMPLEMENTED_LOG_ONCE();
43 return DefaultWebClientState::UNKNOWN_DEFAULT;
48 DefaultWebClientSetPermission GetPlatformSpecificDefaultWebClientSetPermission(
49 WebClientSetMethod method) {
50 return SET_DEFAULT_UNATTENDED;
53 } // namespace internal
55 } // namespace shell_integration