| Index: chrome/browser/ui/browser_navigator.cc
|
| diff --git a/chrome/browser/ui/browser_navigator.cc b/chrome/browser/ui/browser_navigator.cc
|
| index fb73fe7d6191e54d1d4abd8e98c1bbc8ab3a86c7..2f50d8e42cabeb24d4a9dbb8f5a79e03c96e3304 100644
|
| --- a/chrome/browser/ui/browser_navigator.cc
|
| +++ b/chrome/browser/ui/browser_navigator.cc
|
| @@ -458,9 +458,14 @@ void Navigate(NavigateParams* params) {
|
| return;
|
|
|
| ExtensionService* service = params->initiating_profile->GetExtensionService();
|
| - if (service)
|
| + if (service) {
|
| + // TODO(sergeygs): Shouldn't we return from here if this returns true?
|
| service->ShouldBlockUrlInBrowserTab(¶ms->url);
|
|
|
| + if (service->MaybeRedirectUrlToApp(params->url, params->referrer.url))
|
| + return;
|
| + }
|
| +
|
| // The browser window may want to adjust the disposition.
|
| if (params->disposition == NEW_POPUP &&
|
| source_browser &&
|
|
|