summaryrefslogtreecommitdiffstats
path: root/chrome/browser/background
diff options
context:
space:
mode:
authorjstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-23 19:02:52 +0000
committerjstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-23 19:02:52 +0000
commit0d3e4a22b373147c6144b57fefdf4012823e9150 (patch)
tree6388b5763a9c434ba6c79daff407b0e4e11d3572 /chrome/browser/background
parente31440ac4b5ff347768ade5e2cd6e42720234ca0 (diff)
downloadchromium_src-0d3e4a22b373147c6144b57fefdf4012823e9150.zip
chromium_src-0d3e4a22b373147c6144b57fefdf4012823e9150.tar.gz
chromium_src-0d3e4a22b373147c6144b57fefdf4012823e9150.tar.bz2
Start refractoring extension permissions into ExtensionPermissionSet.
BUG=84507 TEST=*Extension* Review URL: http://codereview.chromium.org/7003098 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90244 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/background')
-rw-r--r--chrome/browser/background/background_application_list_model.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/chrome/browser/background/background_application_list_model.cc b/chrome/browser/background/background_application_list_model.cc
index f9092c1..d8512bc 100644
--- a/chrome/browser/background/background_application_list_model.cc
+++ b/chrome/browser/background/background_application_list_model.cc
@@ -99,11 +99,6 @@ void GetServiceApplications(ExtensionService* service,
ExtensionNameComparator(collator.get()));
}
-bool HasBackgroundAppPermission(
- const std::set<std::string>& api_permissions) {
- return Extension::HasApiPermission(
- api_permissions, Extension::kBackgroundPermission);
-}
} // namespace
void
@@ -250,7 +245,7 @@ int BackgroundApplicationListModel::GetPosition(
// static
bool BackgroundApplicationListModel::IsBackgroundApp(
const Extension& extension) {
- return HasBackgroundAppPermission(extension.api_permissions());
+ return extension.HasAPIPermission(ExtensionAPIPermission::kBackground);
}
void BackgroundApplicationListModel::Observe(