| Index: chrome/browser/shell_integration_mac.mm
|
| diff --git a/chrome/browser/shell_integration_mac.mm b/chrome/browser/shell_integration_mac.mm
|
| index 2ae55e18078079044e4332a91c21e57ae5ca6b69..4fcf4b98b307a61a1c2f47b09b710a2dace8aa59 100644
|
| --- a/chrome/browser/shell_integration_mac.mm
|
| +++ b/chrome/browser/shell_integration_mac.mm
|
| @@ -53,7 +53,7 @@ bool IsIdentifierDefaultProtocolClient(NSString* identifier,
|
| // applies only for the current user. Returns false if this cannot be done, or
|
| // if the operation fails.
|
| bool SetAsDefaultBrowser() {
|
| - if (CanSetAsDefaultBrowser() != SET_DEFAULT_UNATTENDED)
|
| + if (CanSetAsDefaultBrowser())
|
| return false;
|
|
|
| // We really do want the outer bundle here, not the main bundle since setting
|
| @@ -73,7 +73,7 @@ bool SetAsDefaultProtocolClient(const std::string& protocol) {
|
| if (protocol.empty())
|
| return false;
|
|
|
| - if (CanSetAsDefaultProtocolClient() != SET_DEFAULT_UNATTENDED)
|
| + if (GetDefaultWebClientSetPermission() != SET_DEFAULT_UNATTENDED)
|
| return false;
|
|
|
| // We really do want the main bundle here since it makes sense to set an
|
| @@ -89,12 +89,12 @@ bool SetAsDefaultProtocolClient(const std::string& protocol) {
|
| return return_code == noErr;
|
| }
|
|
|
| -DefaultWebClientSetPermission CanSetAsDefaultBrowser() {
|
| - if (chrome::GetChannel() != version_info::Channel::CANARY) {
|
| - return SET_DEFAULT_UNATTENDED;
|
| +DefaultWebClientSetPermission GetDefaultWebClientSetPermission() {
|
| + if (chrome::GetChannel() == version_info::Channel::CANARY) {
|
| + return SET_DEFAULT_NOT_ALLOWED;
|
| }
|
|
|
| - return SET_DEFAULT_NOT_ALLOWED;
|
| + return SET_DEFAULT_UNATTENDED;
|
| }
|
|
|
| base::string16 GetApplicationNameForProtocol(const GURL& url) {
|
|
|