Index: chrome/common/extensions/extension_messages.cc |
diff --git a/chrome/common/extensions/extension_messages.cc b/chrome/common/extensions/extension_messages.cc |
index 3adee275ef648fa98c1cdea8704b546dcc2c5c6b..a32628906281a511ac0973fe9a99dfe048e68ff5 100644 |
--- a/chrome/common/extensions/extension_messages.cc |
+++ b/chrome/common/extensions/extension_messages.cc |
@@ -5,7 +5,6 @@ |
#include "chrome/common/extensions/extension_messages.h" |
#include "chrome/common/extensions/extension_constants.h" |
-#include "chrome/common/extensions/manifest.h" |
#include "content/public/common/common_param_traits.h" |
ExtensionMsg_Loaded_Params::ExtensionMsg_Loaded_Params() |
@@ -50,11 +49,10 @@ ExtensionMsg_Loaded_Params::ExtensionMsg_Loaded_Params( |
extension_manifest_keys::kVersion, |
}; |
- // Copy only the data we need and bypass the manifest type checks. |
- DictionaryValue* source = extension->manifest()->value(); |
+ // Copy only the data we need. |
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kRendererExtensionKeys); ++i) { |
Value* temp = NULL; |
- if (source->Get(kRendererExtensionKeys[i], &temp)) |
+ if (extension->manifest_value()->Get(kRendererExtensionKeys[i], &temp)) |
manifest->Set(kRendererExtensionKeys[i], temp->DeepCopy()); |
} |
} |