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

Unified Diff: extensions/renderer/safe_builtins.cc

Issue 1906593002: [Extensions] Finish freezing schema (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « extensions/renderer/resources/utils.js ('k') | extensions/renderer/v8_schema_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/safe_builtins.cc
diff --git a/extensions/renderer/safe_builtins.cc b/extensions/renderer/safe_builtins.cc
index b3e4f8425c0cebc72c47a8a4dc54e647715f33d8..2933e4dbd6f48884a8df81d108ec6495b107173d 100644
--- a/extensions/renderer/safe_builtins.cc
+++ b/extensions/renderer/safe_builtins.cc
@@ -70,12 +70,14 @@ const char kScript[] =
"saveBuiltin(Object,\n"
" ['hasOwnProperty'],\n"
" ['create', 'defineProperty', 'freeze',\n"
- " 'getOwnPropertyDescriptor', 'getPrototypeOf', 'keys']);\n"
+ " 'getOwnPropertyDescriptor', 'getPrototypeOf', 'keys',\n"
+ " 'assign']);\n"
"saveBuiltin(Function,\n"
" ['apply', 'bind', 'call']);\n"
"saveBuiltin(Array,\n"
" ['concat', 'forEach', 'indexOf', 'join', 'push', 'slice',\n"
- " 'splice', 'map', 'filter']);\n"
+ " 'splice', 'map', 'filter', 'unshift'],\n"
+ " ['isArray']);\n"
"saveBuiltin(String,\n"
" ['indexOf', 'slice', 'split', 'substr', 'toUpperCase',\n"
" 'replace']);\n"
« no previous file with comments | « extensions/renderer/resources/utils.js ('k') | extensions/renderer/v8_schema_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698