diff options
author | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-11 09:57:29 +0000 |
---|---|---|
committer | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-11 09:57:29 +0000 |
commit | f4f9ad5bab8cc91b6e87513bce90a8f2c967b148 (patch) | |
tree | 7623bed40103dd8a71bda8c77fa50d8a7ad57722 /chrome/browser/extensions/script_bubble_controller_unittest.cc | |
parent | ecdc6d2a917ed7791a525b48ee975d33f7e5beb9 (diff) | |
download | chromium_src-f4f9ad5bab8cc91b6e87513bce90a8f2c967b148.zip chromium_src-f4f9ad5bab8cc91b6e87513bce90a8f2c967b148.tar.gz chromium_src-f4f9ad5bab8cc91b6e87513bce90a8f2c967b148.tar.bz2 |
Restrict the script bubble to just extensions that have the activeTab permission.
Also make the bubble use normal size fonts.
TBR=sky
BUG=153137
TEST=You'll need an extension that uses activeTab. Once you click its browser/page action, the hexnut should appear and it's bubble should list the extension as interacting with the page. Extensions that inject by means other than activeTab should not show the hexnut.
Review URL: https://codereview.chromium.org/11775027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176299 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/script_bubble_controller_unittest.cc')
-rw-r--r-- | chrome/browser/extensions/script_bubble_controller_unittest.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/chrome/browser/extensions/script_bubble_controller_unittest.cc b/chrome/browser/extensions/script_bubble_controller_unittest.cc index dc1c913..bb9bdb3 100644 --- a/chrome/browser/extensions/script_bubble_controller_unittest.cc +++ b/chrome/browser/extensions/script_bubble_controller_unittest.cc @@ -80,7 +80,9 @@ TEST_F(ScriptBubbleControllerTest, Basics) { .SetManifest(DictionaryBuilder() .Set("name", "ex1") .Set("version", "1") - .Set("manifest_version", 2)) + .Set("manifest_version", 2) + .Set("permissions", ListBuilder() + .Append("activeTab"))) .Build(); scoped_refptr<const Extension> extension2 = @@ -89,7 +91,9 @@ TEST_F(ScriptBubbleControllerTest, Basics) { .SetManifest(DictionaryBuilder() .Set("name", "ex2") .Set("version", "1") - .Set("manifest_version", 2)) + .Set("manifest_version", 2) + .Set("permissions", ListBuilder() + .Append("activeTab"))) .Build(); scoped_refptr<const Extension> extension3 = @@ -98,7 +102,9 @@ TEST_F(ScriptBubbleControllerTest, Basics) { .SetManifest(DictionaryBuilder() .Set("name", "ex3") .Set("version", "1") - .Set("manifest_version", 2)) + .Set("manifest_version", 2) + .Set("permissions", ListBuilder() + .Append("activeTab"))) .Build(); extension_service_->AddExtension(extension1); |