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 edd2b4860f1982c343636bc1bc38b13c5347736b..f36a569bf15a2a68860484f4f9bb7294833bec98 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( |
ShellIntegration::DefaultProtocolClientWorker* worker) { |
worker_ = worker; |
} |
-bool ProtocolHandlerRegistry::DefaultClientObserver::IsOwnedByWorker() { |
- return true; |
-} |
- |
// Delegate -------------------------------------------------------------------- |
ProtocolHandlerRegistry::Delegate::~Delegate() {} |
@@ -303,7 +294,8 @@ ShellIntegration::DefaultProtocolClientWorker* |
ProtocolHandlerRegistry::Delegate::CreateShellWorker( |
ShellIntegration::DefaultWebClientObserver* observer, |
const std::string& protocol) { |
- return new ShellIntegration::DefaultProtocolClientWorker(observer, protocol); |
+ return new ShellIntegration::DefaultProtocolClientWorker( |
+ observer, protocol, /*delete_observer=*/true); |
} |
ProtocolHandlerRegistry::DefaultClientObserver* |