| 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 a98610fac9e43a6bd93bef81643d0bad9c387002..9d9ba81db1ed00c86e68a0089e798e72c5e5df35 100644
|
| --- a/chrome/browser/custom_handlers/protocol_handler_registry.cc
|
| +++ b/chrome/browser/custom_handlers/protocol_handler_registry.cc
|
| @@ -261,20 +261,11 @@ void ProtocolHandlerRegistry::DefaultClientObserver::SetDefaultWebClientUIState(
|
| }
|
| }
|
|
|
| -bool ProtocolHandlerRegistry::DefaultClientObserver::
|
| - IsInteractiveSetDefaultPermitted() {
|
| - return true;
|
| -}
|
| -
|
| void ProtocolHandlerRegistry::DefaultClientObserver::SetWorker(
|
| shell_integration::DefaultProtocolClientWorker* worker) {
|
| worker_ = worker;
|
| }
|
|
|
| -bool ProtocolHandlerRegistry::DefaultClientObserver::IsOwnedByWorker() {
|
| - return true;
|
| -}
|
| -
|
| // Delegate --------------------------------------------------------------------
|
|
|
| ProtocolHandlerRegistry::Delegate::~Delegate() {}
|
| @@ -303,7 +294,8 @@ shell_integration::DefaultProtocolClientWorker*
|
| ProtocolHandlerRegistry::Delegate::CreateShellWorker(
|
| shell_integration::DefaultWebClientObserver* observer,
|
| const std::string& protocol) {
|
| - return new shell_integration::DefaultProtocolClientWorker(observer, protocol);
|
| + return new shell_integration::DefaultProtocolClientWorker(
|
| + observer, protocol, /*delete_observer=*/true);
|
| }
|
|
|
| ProtocolHandlerRegistry::DefaultClientObserver*
|
|
|