Chromium Code Reviews| 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? |
|
not at google - send to devlin
2013/08/19 23:32:24
no, it looks like this method modifies the URL to
sergeygs
2013/08/29 08:24:42
Done.
|
| service->ShouldBlockUrlInBrowserTab(¶ms->url); |
| + if (service->MaybeRedirectUrlToApp(params->url, params->referrer.url)) |
| + return; |
| + } |
|
not at google - send to devlin
2013/08/19 23:32:24
when you pull the MaybeRedirecturlToApp logic out
sergeygs
2013/08/29 08:24:42
Done. Would it make sense to also obtain the Exten
not at google - send to devlin
2013/08/29 17:35:56
yeah that would be nice. You could restructure thi
sergeygs
2013/08/30 00:39:44
Done. The second part didn't occur to me, but soun
|
| + |
| // The browser window may want to adjust the disposition. |
| if (params->disposition == NEW_POPUP && |
| source_browser && |