| 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()) {
|
|
|