Index: extensions/renderer/script_context.cc |
diff --git a/extensions/renderer/script_context.cc b/extensions/renderer/script_context.cc |
index 9a60177ad76ebe841bc8da9c7331b4081b9d14e4..531e416f6180196adafa3088710c9ab297e13d3d 100644 |
--- a/extensions/renderer/script_context.cc |
+++ b/extensions/renderer/script_context.cc |
@@ -254,6 +254,11 @@ std::string ScriptContext::GetEffectiveContextTypeDescription() const { |
return GetContextTypeDescriptionString(effective_context_type_); |
} |
+const GURL& ScriptContext::service_worker_scope() const { |
+ DCHECK_EQ(Feature::SERVICE_WORKER_CONTEXT, context_type()); |
+ return service_worker_scope_; |
+} |
+ |
bool ScriptContext::IsAnyFeatureAvailableToContext( |
const Feature& api, |
CheckAliasStatus check_alias) { |