Index: chrome/common/render_messages_params.cc |
diff --git a/chrome/common/render_messages_params.cc b/chrome/common/render_messages_params.cc |
index 3362704a0c36a73ad685bc7712b5afe14246b1ff..06b852f3a9852866019c8f3142fc1d2a3c0fc443 100644 |
--- a/chrome/common/render_messages_params.cc |
+++ b/chrome/common/render_messages_params.cc |
@@ -288,27 +288,10 @@ ViewMsg_ExtensionLoaded_Params::ViewMsg_ExtensionLoaded_Params( |
ViewMsg_ExtensionLoaded_Params::ViewMsg_ExtensionLoaded_Params( |
const Extension* extension) |
- : manifest(new DictionaryValue()), |
+ : manifest(extension->manifest_value()->DeepCopy()), |
location(extension->location()), |
path(extension->path()), |
id(extension->id()) { |
- // As we need more bits of extension data in the renderer, add more keys to |
- // this list. |
- const char* kRendererExtensionKeys[] = { |
- extension_manifest_keys::kPublicKey, |
- extension_manifest_keys::kName, |
- extension_manifest_keys::kVersion, |
- extension_manifest_keys::kIcons, |
- extension_manifest_keys::kPermissions, |
- extension_manifest_keys::kApp |
Aaron Boodman
2011/02/10 05:25:50
We were not copying the content_scripts key, which
|
- }; |
- |
- // Copy only the data we need. |
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kRendererExtensionKeys); ++i) { |
- Value* temp = NULL; |
- if (extension->manifest_value()->Get(kRendererExtensionKeys[i], &temp)) |
- manifest->Set(kRendererExtensionKeys[i], temp->DeepCopy()); |
- } |
} |
scoped_refptr<Extension> |