Enable _api_features.json to block APIs from service worker contexts.
commite582b87599359ab612b0b38c71cf7edf3c4b8675
authorscheib@chromium.org <scheib@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 1 Apr 2014 00:27:21 +0000 (1 00:27 +0000)
committerscheib@chromium.org <scheib@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 1 Apr 2014 00:27:21 +0000 (1 00:27 +0000)
tree8ea5f4d6bcdb859fbaa153f6eee81cda00d43151
parent0114ec0aecaf3fa18297708bd7bf2b39de61b57f
Enable _api_features.json to block APIs from service worker contexts.

A new property blocked_in_service_worker is parsed from features
and exposed via IsBlockedInServiceWorker().

BUG=350009

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260716 0039d316-1c4b-4281-b951-d872f2087c98
chrome/common/extensions/features/api_feature.cc
chrome/common/extensions/features/api_feature.h
chrome/common/extensions/features/complex_feature.cc
chrome/common/extensions/features/complex_feature.h
chrome/common/extensions/features/complex_feature_unittest.cc
chrome/common/extensions/features/simple_feature.cc
chrome/common/extensions/features/simple_feature.h
extensions/common/features/feature.h