Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3193)

Unified Diff: chrome/browser/custom_handlers/protocol_handler_registry.cc

Issue 1657933003: Fixes the interactive default browser UX for policy setting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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*

Powered by Google App Engine
This is Rietveld 408576698