Chromium Code Reviews| Index: chrome/renderer/extensions/dispatcher.cc |
| diff --git a/chrome/renderer/extensions/dispatcher.cc b/chrome/renderer/extensions/dispatcher.cc |
| index efec6f00ec2d69b78286151e5e256552e423d5b4..04ada60f632378ff20c4a8ebec8e8c4c83877f26 100644 |
| --- a/chrome/renderer/extensions/dispatcher.cc |
| +++ b/chrome/renderer/extensions/dispatcher.cc |
| @@ -1133,6 +1133,14 @@ void Dispatcher::DidCreateScriptContext( |
| new ChromeV8Context(v8_context, frame, extension, context_type); |
| v8_context_set_.Add(context); |
| + if (context_type == Feature::CONTENT_SCRIPT_CONTEXT || |
|
not at google - send to devlin
2014/02/19 18:28:21
did "if (extension)" not work (and allow you to de
|
| + context_type == Feature::UNBLESSED_EXTENSION_CONTEXT) { |
| + AddOrRemoveOriginPermissions( |
| + UpdatedExtensionPermissionsInfo::ADDED, |
| + extension, |
| + PermissionsData::GetEffectiveHostPermissions(extension)); |
| + } |
| + |
| { |
| scoped_ptr<ModuleSystem> module_system(new ModuleSystem(context, |
| &source_map_)); |