Index: extensions/renderer/script_context_set.cc |
diff --git a/extensions/renderer/script_context_set.cc b/extensions/renderer/script_context_set.cc |
index 8f520e40bf308850d65cb5b2edb6ae386fad22ca..9b65e05335149666ed629206b834233f4edfa24e 100644 |
--- a/extensions/renderer/script_context_set.cc |
+++ b/extensions/renderer/script_context_set.cc |
@@ -199,10 +199,13 @@ Feature::Context ScriptContextSet::ClassifyJavaScriptContext( |
// case this would usually be considered a (blessed) web page context, |
// unless the extension in question is a component extension, in which case |
// we cheat and call it blessed. |
- return (extension->is_hosted_app() && |
- extension->location() != Manifest::COMPONENT) |
- ? Feature::BLESSED_WEB_PAGE_CONTEXT |
- : Feature::BLESSED_EXTENSION_CONTEXT; |
+ if (extension->is_hosted_app() && |
+ extension->location() != Manifest::COMPONENT) { |
+ return Feature::BLESSED_WEB_PAGE_CONTEXT; |
+ } |
+ |
+ return lock_screen_context_ ? Feature::LOCK_SCREEN_EXTENSION_CONTEXT |
+ : Feature::BLESSED_EXTENSION_CONTEXT; |
} |
// TODO(kalman): This isUnique() check is wrong, it should be performed as |