summaryrefslogtreecommitdiffstats
path: root/chrome/browser/custom_handlers/protocol_handler_registry.cc
diff options
context:
space:
mode:
authorbenwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-18 02:25:31 +0000
committerbenwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-18 02:25:31 +0000
commit5e3e0963e07c653f31fd5b57f5de596f4a0863e7 (patch)
treea3c72e899a39250c0cd975b5616d9fbcccb8a160 /chrome/browser/custom_handlers/protocol_handler_registry.cc
parent3292f537c09512d8d99cdf8e11366fed419ca6a0 (diff)
downloadchromium_src-5e3e0963e07c653f31fd5b57f5de596f4a0863e7.zip
chromium_src-5e3e0963e07c653f31fd5b57f5de596f4a0863e7.tar.gz
chromium_src-5e3e0963e07c653f31fd5b57f5de596f4a0863e7.tar.bz2
Canary versions no longer always remove protocol handlers at startup.
Canary versions no longer check OS registration at startup as they cannot make themselves the default OS handler. BUG=88196 TEST=Manual Review URL: http://codereview.chromium.org/7388009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92825 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/custom_handlers/protocol_handler_registry.cc')
-rw-r--r--chrome/browser/custom_handlers/protocol_handler_registry.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/custom_handlers/protocol_handler_registry.cc b/chrome/browser/custom_handlers/protocol_handler_registry.cc
index d7a10b8..cccc2dc 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
}