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

Unified Diff: chrome/browser/ui/browser_navigator.cc

Issue 22944002: Implementation of the "Redirect URLs to Packaged Apps" feature. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 1) Fixed broken redirection for in-page WebKit-initiated navigations. All redirections work now. 2)… Created 7 years, 4 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/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(&params->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 &&

Powered by Google App Engine
This is Rietveld 408576698