| Index: extensions/renderer/script_context.cc
|
| diff --git a/extensions/renderer/script_context.cc b/extensions/renderer/script_context.cc
|
| index 529c5fcd40cba368725f1f57b0937420ee759035..587087bd1a5e05af173a28c3375f7c346ca4e205 100644
|
| --- a/extensions/renderer/script_context.cc
|
| +++ b/extensions/renderer/script_context.cc
|
| @@ -256,8 +256,12 @@ std::string ScriptContext::GetEffectiveContextTypeDescription() const {
|
|
|
| bool ScriptContext::IsAnyFeatureAvailableToContext(const Feature& api) {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
| + // TODO(lazyboy): Decide what we should do for SERVICE_WORKER_CONTEXT.
|
| + GURL url = context_type() == Feature::SERVICE_WORKER_CONTEXT
|
| + ? url_
|
| + : GetDataSourceURLForFrame(web_frame());
|
| return ExtensionAPI::GetSharedInstance()->IsAnyFeatureAvailableToContext(
|
| - api, extension(), context_type(), GetDataSourceURLForFrame(web_frame()));
|
| + api, extension(), context_type(), url);
|
| }
|
|
|
| // static
|
|
|