[M120 Migration]Fix for crash during chrome exit
[platform/framework/web/chromium-efl.git] / chrome / browser / shell_integration_chromeos.cc
1 // Copyright 2013 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 #include "chrome/browser/shell_integration.h"
6
7 namespace shell_integration {
8
9 bool SetAsDefaultBrowser() {
10   return false;
11 }
12
13 bool SetAsDefaultClientForScheme(const std::string& scheme) {
14   return false;
15 }
16
17 std::u16string GetApplicationNameForScheme(const GURL& url) {
18   return std::u16string();
19 }
20
21 DefaultWebClientState GetDefaultBrowser() {
22   // Chrome is always the default system browser in Chrome OS. This is called
23   // from ChromeAppDelegate::NewWindowContentsDelegate::OpenURLFromTab() where
24   // we should navigate internally since we are the default browser rather than
25   // call platform_util::OpenExternal().
26   return IS_DEFAULT;
27 }
28
29 bool IsFirefoxDefaultBrowser() {
30   return false;
31 }
32
33 DefaultWebClientState IsDefaultClientForScheme(const std::string& scheme) {
34   return UNKNOWN_DEFAULT;
35 }
36
37 namespace internal {
38
39 DefaultWebClientSetPermission GetPlatformSpecificDefaultWebClientSetPermission(
40     WebClientSetMethod method) {
41   return SET_DEFAULT_NOT_ALLOWED;
42 }
43
44 }  // namespace internal
45
46 }  // namespace shell_integration