extensions: Register 'app' and 'webstore' bindings only if they are available.
commit9fe97260f3b3bdf78f7de67accd99cd07b131de4
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 7 Aug 2014 02:31:54 +0000 (7 02:31 +0000)
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 7 Aug 2014 02:31:54 +0000 (7 02:31 +0000)
tree8ad1a9ebf1f8cc10d37a18f4581c168a0f38891b
parentf3f1e81e6a032d79f0008cca752ae3ca834e484e
extensions: Register 'app' and 'webstore' bindings only if they are available.

When running from outside chrome (e.g. in athena), 'app' and 'webstore' api
implementations are not available. So check to see if the API is available
before registering the corresponding bindings.

BUG=391478
R=kalman@chromium.org

Review URL: https://codereview.chromium.org/443723003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287935 0039d316-1c4b-4281-b951-d872f2087c98
chrome/common/extensions/api/_api_features.json
chrome/common/extensions/api/extension_api_unittest.cc
extensions/common/permissions/permissions_data.cc
extensions/renderer/dispatcher.cc