| Index: extensions/common/features/simple_feature.cc
|
| diff --git a/extensions/common/features/simple_feature.cc b/extensions/common/features/simple_feature.cc
|
| index 37a0c80dc2572469423bd7d6ceb31b2d15ca6067..c7c66f4848004bbc023685a8d160606a59568811 100644
|
| --- a/extensions/common/features/simple_feature.cc
|
| +++ b/extensions/common/features/simple_feature.cc
|
| @@ -45,12 +45,15 @@ Feature::Availability IsAvailableToManifestForBind(
|
| extension_id, type, location, manifest_version, platform);
|
| }
|
|
|
| -Feature::Availability IsAvailableToContextForBind(const Extension* extension,
|
| - Feature::Context context,
|
| - const GURL& url,
|
| - Feature::Platform platform,
|
| - const Feature* feature) {
|
| - return feature->IsAvailableToContext(extension, context, url, platform);
|
| +Feature::Availability IsAvailableToContextForBind(
|
| + const Extension* extension,
|
| + Feature::Context context,
|
| + Feature::SessionType session_type,
|
| + const GURL& url,
|
| + Feature::Platform platform,
|
| + const Feature* feature) {
|
| + return feature->IsAvailableToContext(extension, context, session_type, url,
|
| + platform);
|
| }
|
|
|
| // TODO(aa): Can we replace all this manual parsing with JSON schema stuff?
|
| @@ -448,7 +451,8 @@ Feature::Availability SimpleFeature::IsAvailableToManifest(
|
|
|
| Feature::Availability SimpleFeature::IsAvailableToContext(
|
| const Extension* extension,
|
| - SimpleFeature::Context context,
|
| + Feature::Context context,
|
| + Feature::SessionType session_type,
|
| const GURL& url,
|
| SimpleFeature::Platform platform) const {
|
| if (extension) {
|
| @@ -478,8 +482,8 @@ Feature::Availability SimpleFeature::IsAvailableToContext(
|
|
|
| // TODO(kalman): Assert that if the context was a webpage or WebUI context
|
| // then at some point a "matches" restriction was checked.
|
| - return CheckDependencies(base::Bind(
|
| - &IsAvailableToContextForBind, extension, context, url, platform));
|
| + return CheckDependencies(base::Bind(&IsAvailableToContextForBind, extension,
|
| + context, session_type, url, platform));
|
| }
|
|
|
| std::string SimpleFeature::GetAvailabilityMessage(
|
|
|