summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/extensions/chrome_private_custom_bindings.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/extensions/chrome_private_custom_bindings.cc')
-rw-r--r--chrome/renderer/extensions/chrome_private_custom_bindings.cc13
1 files changed, 0 insertions, 13 deletions
diff --git a/chrome/renderer/extensions/chrome_private_custom_bindings.cc b/chrome/renderer/extensions/chrome_private_custom_bindings.cc
index 223f197..a1e4fbb 100644
--- a/chrome/renderer/extensions/chrome_private_custom_bindings.cc
+++ b/chrome/renderer/extensions/chrome_private_custom_bindings.cc
@@ -31,25 +31,12 @@ ChromePrivateCustomBindings::ChromePrivateCustomBindings(
// static
v8::Handle<v8::Value> ChromePrivateCustomBindings::DecodeJPEG(
const v8::Arguments& args) {
- static const char* kAllowedIds[] = {
- "haiffjcadagjlijoggckpgfnoeiflnem",
- "gnedhmakppccajfpfiihfcdlnpgomkcf",
- "fjcibdnjlbfnbfdjneajpipnlcppleek",
- "oflbaaikkabfdfkimeclgkackhdkpnip" // Testing extension.
- };
- const std::vector<std::string> allowed_ids(
- kAllowedIds, kAllowedIds + arraysize(kAllowedIds));
-
ChromePrivateCustomBindings* v8_extension =
GetFromArguments<ChromePrivateCustomBindings>(args);
const ::Extension* extension =
v8_extension->GetExtensionForCurrentRenderView();
if (!extension)
return v8::Undefined();
- if (allowed_ids.end() == std::find(
- allowed_ids.begin(), allowed_ids.end(), extension->id())) {
- return v8::Undefined();
- }
DCHECK(args.Length() == 1);
DCHECK(args[0]->IsArray());