| Index: chrome/browser/custom_handlers/protocol_handler_registry.cc
|
| diff --git a/chrome/browser/custom_handlers/protocol_handler_registry.cc b/chrome/browser/custom_handlers/protocol_handler_registry.cc
|
| index d7a10b86bd888cf4f5c339c6e817eddc6b72d883..cccc2dc4f2568e29ad1edc5cb6d6870cdbfd1d46 100644
|
| --- a/chrome/browser/custom_handlers/protocol_handler_registry.cc
|
| +++ b/chrome/browser/custom_handlers/protocol_handler_registry.cc
|
| @@ -174,7 +174,8 @@ bool ShouldRemoveHandlersNotInOS() {
|
| return false;
|
| #else
|
| const CommandLine& cmd_line = *CommandLine::ForCurrentProcess();
|
| - return !cmd_line.HasSwitch(switches::kDisableCustomProtocolOSCheck);
|
| + return ShellIntegration::CanSetAsDefaultProtocolClient() &&
|
| + !cmd_line.HasSwitch(switches::kDisableCustomProtocolOSCheck);
|
| #endif
|
| }
|
|
|
|
|