diff options
author | benwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-15 04:30:02 +0000 |
---|---|---|
committer | benwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-15 04:30:02 +0000 |
commit | a01481bdb11bd0da01eff43c4b773296e28cd3ba (patch) | |
tree | a9359142912d4b979814ac367201f721e6f8f1ac /chrome/browser/shell_integration.h | |
parent | b5a1acaa53441a9aea2f691a6eebcedceed2b454 (diff) | |
download | chromium_src-a01481bdb11bd0da01eff43c4b773296e28cd3ba.zip chromium_src-a01481bdb11bd0da01eff43c4b773296e28cd3ba.tar.gz chromium_src-a01481bdb11bd0da01eff43c4b773296e28cd3ba.tar.bz2 |
Moved CanSetAsDefault* from platform_util to shell_integration
Moved the CanSetAsDefaultBrowser / ProtocolClient functions next to the
routines which do the setting of Chrome to be the default browser and
client.
BUG=88196
TEST=Manual testing performed
Review URL: http://codereview.chromium.org/7334003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92659 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/shell_integration.h')
-rw-r--r-- | chrome/browser/shell_integration.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/shell_integration.h b/chrome/browser/shell_integration.h index ab570ce..7c109da 100644 --- a/chrome/browser/shell_integration.h +++ b/chrome/browser/shell_integration.h @@ -34,6 +34,13 @@ class ShellIntegration { // (only for the current user). Returns false if this operation fails. static bool SetAsDefaultProtocolClient(const std::string& protocol); + // Returns true if the running browser can be set as the default browser. + static bool CanSetAsDefaultBrowser(); + + // Returns true if the running browser can be set as the default client + // application for the given protocol. + static bool CanSetAsDefaultProtocolClient(const std::string& protocol); + // On Linux, it may not be possible to determine or set the default browser // on some desktop environments or configurations. So, we use this enum and // not a plain bool. (Note however that if used like a bool, this enum will |