| // Copyright 2013 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "chrome/browser/shell_integration.h" |
| |
| namespace shell_integration { |
| |
| bool SetAsDefaultBrowser() { |
| return false; |
| } |
| |
| bool SetAsDefaultProtocolClient(const std::string& protocol) { |
| return false; |
| } |
| |
| DefaultWebClientSetPermission |
| GetPlatformSpecificDefaultWebClientSetPermission() { |
| return SET_DEFAULT_NOT_ALLOWED; |
| } |
| |
| std::u16string GetApplicationNameForProtocol(const GURL& url) { |
| return std::u16string(); |
| } |
| |
| DefaultWebClientState GetDefaultBrowser() { |
| // Chrome is always the default system browser in Chrome OS. This is called |
| // from ChromeAppDelegate::NewWindowContentsDelegate::OpenURLFromTab() where |
| // we should navigate internally since we are the default browser rather than |
| // call platform_util::OpenExternal(). |
| return IS_DEFAULT; |
| } |
| |
| bool IsFirefoxDefaultBrowser() { |
| return false; |
| } |
| |
| DefaultWebClientState IsDefaultProtocolClient(const std::string& protocol) { |
| return UNKNOWN_DEFAULT; |
| } |
| |
| } // namespace shell_integration |