summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/extensions/runtime_custom_bindings.cc
diff options
context:
space:
mode:
authorkalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-07 20:44:41 +0000
committerkalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-07 20:44:41 +0000
commit276f05aa5fc98df61d947ccaf7480bca9c021730 (patch)
tree39f71a9d3ea8be562d942b702172e5e6b6c56433 /chrome/renderer/extensions/runtime_custom_bindings.cc
parentc6176da0f310db393db5f02269f2e83cbe17aacf (diff)
downloadchromium_src-276f05aa5fc98df61d947ccaf7480bca9c021730.zip
chromium_src-276f05aa5fc98df61d947ccaf7480bca9c021730.tar.gz
chromium_src-276f05aa5fc98df61d947ccaf7480bca9c021730.tar.bz2
Add FeatureProvider::GetAPIFeatures, GetManifestFeatures, and
GetPermissionFeatures as shortcuts for FeatureProvider::GetByName. R=yoz@chromium.org Review URL: https://codereview.chromium.org/25943002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227338 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/extensions/runtime_custom_bindings.cc')
-rw-r--r--chrome/renderer/extensions/runtime_custom_bindings.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/renderer/extensions/runtime_custom_bindings.cc b/chrome/renderer/extensions/runtime_custom_bindings.cc
index 45663f9..ea5f5bf 100644
--- a/chrome/renderer/extensions/runtime_custom_bindings.cc
+++ b/chrome/renderer/extensions/runtime_custom_bindings.cc
@@ -68,7 +68,7 @@ void RuntimeCustomBindings::OpenChannelToNativeApp(
const v8::FunctionCallbackInfo<v8::Value>& args) {
// Verify that the extension has permission to use native messaging.
Feature::Availability availability =
- FeatureProvider::GetByName("permission")->
+ FeatureProvider::GetPermissionFeatures()->
GetFeature("nativeMessaging")->IsAvailableToContext(
GetExtensionForRenderView(),
context()->context_type(),