| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_PLATFORM_UTIL_H_ | 5 #ifndef CHROME_BROWSER_PLATFORM_UTIL_H_ |
| 6 #define CHROME_BROWSER_PLATFORM_UTIL_H_ | 6 #define CHROME_BROWSER_PLATFORM_UTIL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 // Returns the channel for the installation. In branded builds, this will be | 81 // Returns the channel for the installation. In branded builds, this will be |
| 82 // CHANNEL_STABLE, CHANNEL_BETA, CHANNEL_DEV, or CHANNEL_CANARY. In unbranded | 82 // CHANNEL_STABLE, CHANNEL_BETA, CHANNEL_DEV, or CHANNEL_CANARY. In unbranded |
| 83 // builds, or in branded builds when the channel cannot be determined, this | 83 // builds, or in branded builds when the channel cannot be determined, this |
| 84 // will be CHANNEL_UNKNOWN. | 84 // will be CHANNEL_UNKNOWN. |
| 85 Channel GetChannel(); | 85 Channel GetChannel(); |
| 86 | 86 |
| 87 // Returns true if the running browser can be set as the default browser. | 87 // Returns true if the running browser can be set as the default browser. |
| 88 bool CanSetAsDefaultBrowser(); | 88 bool CanSetAsDefaultBrowser(); |
| 89 | 89 |
| 90 // Returns true if the running browser can be set as the default client |
| 91 // application for the given protocol. |
| 92 bool CanSetAsDefaultProtocolClient(const std::string& protocol); |
| 93 |
| 90 } | 94 } |
| 91 | 95 |
| 92 #endif // CHROME_BROWSER_PLATFORM_UTIL_H_ | 96 #endif // CHROME_BROWSER_PLATFORM_UTIL_H_ |
| OLD | NEW |