| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index ad7b7cda8ababdacda9160f46bc92d80a5ab7cd0..d4b217b00ea7c3352014f40f2434804daa271f71 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -2500,15 +2500,8 @@ void Browser::RegisterProtocolHandlerHelper(TabContents* tab,
|
|
|
| ProtocolHandlerRegistry* registry =
|
| tcw->profile()->GetProtocolHandlerRegistry();
|
| - if (!registry->enabled() || registry->HasRegisteredEquivalent(handler) ||
|
| - registry->HasIgnoredEquivalent(handler))
|
| - return;
|
|
|
| - if (!handler.IsEmpty() &&
|
| - registry->CanSchemeBeOverridden(handler.protocol())) {
|
| - // We don't need to show an infobar if we can silently update the handler
|
| - if (registry->AttemptReplace(handler))
|
| - return;
|
| + if (!registry->SilentlyHandleRegisterHandlerRequest(handler)) {
|
| UserMetrics::RecordAction(
|
| UserMetricsAction("RegisterProtocolHandler.InfoBar_Shown"));
|
| InfoBarTabHelper* infobar_helper = tcw->infobar_tab_helper();
|
|
|