From 885c0e94fd5e3d81bb258191d720b7b22ca683df Mon Sep 17 00:00:00 2001 From: "aa@chromium.org" Date: Tue, 13 Nov 2012 20:27:42 +0000 Subject: Establish /extensions directory and move URLPattern there. This doesn't create an extensions gyp target, or a module with a public API. It does set of DEPS rules and seems like it will make it easier for people to write correctly layered code today, while we are in transition. BUG=159265 TBR=ben@chromium.org Review URL: https://codereview.chromium.org/11410015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167454 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/ui/browser.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chrome/browser/ui/browser.cc') diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc index fcbb3b7..f3faf30 100644 --- a/chrome/browser/ui/browser.cc +++ b/chrome/browser/ui/browser.cc @@ -174,6 +174,7 @@ #include "content/public/common/content_switches.h" #include "content/public/common/page_zoom.h" #include "content/public/common/renderer_preferences.h" +#include "extensions/common/constants.h" #include "grit/chromium_strings.h" #include "grit/generated_resources.h" #include "grit/locale_settings.h" @@ -1880,7 +1881,7 @@ void Browser::Observe(int type, details)->extension; for (int i = tab_strip_model_->count() - 1; i >= 0; --i) { WebContents* tc = chrome::GetTabContentsAt(this, i)->web_contents(); - if (tc->GetURL().SchemeIs(chrome::kExtensionScheme) && + if (tc->GetURL().SchemeIs(extensions::kExtensionScheme) && tc->GetURL().host() == extension->id()) chrome::CloseWebContents(this, tc); } -- cgit v1.1