Home
last modified time | relevance | path

Searched refs:api_permissions (Results 1 – 13 of 13) sorted by relevance

/external/chromium/chrome/browser/extensions/
Dconvert_web_app_browsertest.cc73 ASSERT_EQ(2u, installed_extension_->api_permissions().size()); in IN_PROC_BROWSER_TEST_F()
74 EXPECT_TRUE(installed_extension_->api_permissions().find("geolocation") != in IN_PROC_BROWSER_TEST_F()
75 installed_extension_->api_permissions().end()); in IN_PROC_BROWSER_TEST_F()
76 EXPECT_TRUE(installed_extension_->api_permissions().find("notifications") != in IN_PROC_BROWSER_TEST_F()
77 installed_extension_->api_permissions().end()); in IN_PROC_BROWSER_TEST_F()
Dconvert_web_app_unittest.cc126 EXPECT_EQ(2u, extension->api_permissions().size()); in TEST()
170 EXPECT_EQ(0u, extension->api_permissions().size()); in TEST()
Dextension_prefs.h183 std::set<std::string>* api_permissions,
192 const std::set<std::string>& api_permissions,
Dextension_info_map.cc133 return info->second->api_permissions().count(permission_name) != 0; in CheckURLAccessToExtensionPermission()
Dextension_prefs.cc646 std::set<std::string>* api_permissions, in GetGrantedPermissions() argument
655 extension_id, kPrefGrantedPermissionsAPI, api_permissions); in GetGrantedPermissions()
691 const std::set<std::string>& api_permissions, in AddGrantedPermissions() argument
698 if (!api_permissions.empty()) { in AddGrantedPermissions()
700 extension_id, kPrefGrantedPermissionsAPI, api_permissions); in AddGrantedPermissions()
Dextension_management_api.cc94 const std::set<std::string> perms = extension.api_permissions(); in CreateExtensionInfo()
Dextension_service_unittest.cc1352 std::set<std::string> api_permissions; in TEST_F() local
1355 extension_id, &full_access, &api_permissions, &host_permissions)); in TEST_F()
1358 EXPECT_TRUE(api_permissions.empty()); in TEST_F()
1393 std::set<std::string> api_permissions; in TEST_F() local
1399 SetPrefStringSet(extension_id, "granted_permissions.api", api_permissions); in TEST_F()
1432 api_permissions.clear(); in TEST_F()
1437 api_permissions.insert("tabs"); in TEST_F()
1442 SetPrefStringSet(extension_id, "granted_permissions.api", api_permissions); in TEST_F()
Dextension_function_dispatcher.cc433 extension->id(), extension->api_permissions())); in ExtensionFunctionDispatcher()
Dextension_service.cc798 extension->api_permissions(), in GrantPermissions()
/external/chromium/chrome/browser/
Dbackground_application_list_model.cc91 const std::set<std::string>& api_permissions) { in HasBackgroundAppPermission() argument
93 api_permissions, Extension::kBackgroundPermission); in HasBackgroundAppPermission()
239 return HasBackgroundAppPermission(extension.api_permissions()); in IsBackgroundApp()
/external/chromium/chrome/common/extensions/
Dextension.h471 static bool HasApiPermission(const std::set<std::string>& api_permissions,
479 const std::set<std::string>& api_permissions);
482 return HasApiPermission(this->api_permissions(), function_name); in HasApiPermission()
600 const std::set<std::string>& api_permissions() const { in api_permissions() function
Dextension.cc508 for (i = api_permissions().begin(); i != api_permissions().end(); ++i) { in GetSimplePermissionMessages()
1585 std::set<std::string> new_apis = new_extension->api_permissions(); in IsPrivilegeIncrease()
2677 const std::set<std::string>& api_permissions, in HasApiPermission() argument
2697 if (api_permissions.count(permission_name)) in HasApiPermission()
2821 const std::set<std::string>& api_permissions) { in HasEffectiveAccessToAllHosts() argument
2835 api_permissions()); in HasEffectiveAccessToAllHosts()
2934 extension_api_permissions(extension.api_permissions()), in UninstalledExtensionInfo()
/external/chromium/chrome/browser/automation/
Dtesting_automation_provider.cc3869 std::set<std::string> perm_list = ext->api_permissions(); in GetAPIPermissions()