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

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

Issue 10920084: don't display platform app resources in normal browser windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: redirect to chrome-extension://invalid Created 8 years, 3 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 6049b937e52e1d03e6722598a6afe29a362e6fad..9dfd269e87b507aada3cc5fa48472b7a5e85957f 100644
--- a/chrome/browser/ui/browser_navigator.cc
+++ b/chrome/browser/ui/browser_navigator.cc
@@ -393,6 +393,10 @@ void Navigate(NavigateParams* params) {
if (!AdjustNavigateParamsForURL(params))
return;
+ ExtensionService* service = params->initiating_profile->GetExtensionService();
+ if (service)
+ service->ShouldBlockUrlInBrowserTab(&params->url);
+
// 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