summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/extensions
diff options
context:
space:
mode:
authorericdingle@google.com <ericdingle@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-06 18:35:29 +0000
committerericdingle@google.com <ericdingle@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-06 18:35:29 +0000
commit5cce3cd134a69809feab9086c0ff52cbd87bae0e (patch)
treee76f43828db3db5ec583fc5f43429c712e068c73 /chrome/renderer/extensions
parent656475d275524893e4e9b1f02469fe470721a14e (diff)
downloadchromium_src-5cce3cd134a69809feab9086c0ff52cbd87bae0e.zip
chromium_src-5cce3cd134a69809feab9086c0ff52cbd87bae0e.tar.gz
chromium_src-5cce3cd134a69809feab9086c0ff52cbd87bae0e.tar.bz2
Disallow display of multiple experimental.extension.popup(...) windows.
Patch 1 contains twiz@'s code reviewed implementation from http://codereview.chromium.org/1512007. This CL is to address the failure of release tests. BUG=None TEST=ExtensionApiTest.Popup Review URL: http://codereview.chromium.org/1921003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46592 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/extensions')
-rw-r--r--chrome/renderer/extensions/extension_process_bindings.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/renderer/extensions/extension_process_bindings.cc b/chrome/renderer/extensions/extension_process_bindings.cc
index 0e28a91..b9f4e29 100644
--- a/chrome/renderer/extensions/extension_process_bindings.cc
+++ b/chrome/renderer/extensions/extension_process_bindings.cc
@@ -299,7 +299,7 @@ class ExtensionImpl : public ExtensionBase {
if (0 == popup_matcher.views()->Length())
return v8::Undefined();
- DCHECK(popup_matcher.views()->Has(0));
+ DCHECK(1 == popup_matcher.views()->Length());
// Return the first view found.
return popup_matcher.views()->Get(v8::Integer::New(0));