summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/convert_web_app_unittest.cc
diff options
context:
space:
mode:
authorjstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-27 18:42:31 +0000
committerjstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-27 18:42:31 +0000
commit902fd7bbba5683135ec25fe83479b13ab532891a (patch)
treea6f2a4eb6b7a4349bc6fbaae0e419c715046a069 /chrome/browser/extensions/convert_web_app_unittest.cc
parent3a91c5b51bc1890ecf3a558dbd51e3da68c418ca (diff)
downloadchromium_src-902fd7bbba5683135ec25fe83479b13ab532891a.zip
chromium_src-902fd7bbba5683135ec25fe83479b13ab532891a.tar.gz
chromium_src-902fd7bbba5683135ec25fe83479b13ab532891a.tar.bz2
Re-land the experimental permissions API for extensions.
The permissions API lets extensions specify optional permissions in their manifest that they can request at run-time. It currently supports API permissions through a white-list. Host permissions will come later. This also fixes some clang errors from the previous attempt. BUG=48119, 70466, 84507 TEST=*Extension* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=94288 Review URL: http://codereview.chromium.org/7432006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94326 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/convert_web_app_unittest.cc')
-rw-r--r--chrome/browser/extensions/convert_web_app_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/extensions/convert_web_app_unittest.cc b/chrome/browser/extensions/convert_web_app_unittest.cc
index 0f3b537..640b31b 100644
--- a/chrome/browser/extensions/convert_web_app_unittest.cc
+++ b/chrome/browser/extensions/convert_web_app_unittest.cc
@@ -123,7 +123,7 @@ TEST(ExtensionFromWebApp, Basic) {
EXPECT_EQ(UTF16ToUTF8(web_app.title), extension->name());
EXPECT_EQ(UTF16ToUTF8(web_app.description), extension->description());
EXPECT_EQ(web_app.app_url, extension->GetFullLaunchURL());
- EXPECT_EQ(2u, extension->permission_set()->apis().size());
+ EXPECT_EQ(2u, extension->GetActivePermissions()->apis().size());
EXPECT_TRUE(extension->HasAPIPermission("geolocation"));
EXPECT_TRUE(extension->HasAPIPermission("notifications"));
ASSERT_EQ(1u, extension->web_extent().patterns().size());
@@ -167,7 +167,7 @@ TEST(ExtensionFromWebApp, Minimal) {
EXPECT_EQ("", extension->description());
EXPECT_EQ(web_app.app_url, extension->GetFullLaunchURL());
EXPECT_EQ(0u, extension->icons().map().size());
- EXPECT_EQ(0u, extension->permission_set()->apis().size());
+ EXPECT_EQ(0u, extension->GetActivePermissions()->apis().size());
ASSERT_EQ(1u, extension->web_extent().patterns().size());
EXPECT_EQ("*://aaronboodman.com/*",
extension->web_extent().patterns().begin()->GetAsString());