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

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

Issue 2847803004: ExtensionNavigationThrottle: No platform apps in normal tabs.
Patch Set: Merge branch 'kill_107_reboot3'' into kill_107_reboot4' Created 3 years, 7 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
« no previous file with comments | « no previous file | extensions/browser/extension_navigation_throttle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_navigator.cc
diff --git a/chrome/browser/ui/browser_navigator.cc b/chrome/browser/ui/browser_navigator.cc
index e8190f627e85602f6c76f35a3bd53c148b133aae..730b9b16afc5fe90ac7f8e230e00de3074f9a67d 100644
--- a/chrome/browser/ui/browser_navigator.cc
+++ b/chrome/browser/ui/browser_navigator.cc
@@ -50,9 +50,6 @@
#if BUILDFLAG(ENABLE_EXTENSIONS)
#include "chrome/browser/extensions/tab_helper.h"
#include "chrome/browser/web_applications/web_app.h"
-#include "extensions/browser/extension_registry.h"
-#include "extensions/common/extension.h"
-#include "extensions/common/extension_set.h"
#endif
using content::GlobalRequestID;
@@ -421,15 +418,6 @@ void Navigate(NavigateParams* params) {
if (!AdjustNavigateParamsForURL(params))
return;
-#if BUILDFLAG(ENABLE_EXTENSIONS)
- const extensions::Extension* extension =
- extensions::ExtensionRegistry::Get(params->initiating_profile)->
- enabled_extensions().GetExtensionOrAppByURL(params->url);
- // Platform apps cannot navigate. Block the request.
- if (extension && extension->is_platform_app())
- params->url = GURL(chrome::kExtensionInvalidRequestURL);
-#endif
-
// The browser window may want to adjust the disposition.
if (params->disposition == WindowOpenDisposition::NEW_POPUP &&
source_browser && source_browser->window()) {
« no previous file with comments | « no previous file | extensions/browser/extension_navigation_throttle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698