Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4133)

Unified Diff: chrome/common/render_messages_params.cc

Issue 6478019: Temporarily disable restrictions on who can request chrome-extension:// (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698