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

Side by Side Diff: chrome/test/data/extensions/api_test/bindings/function_interceptions.html

Issue 1806723003: [Extensions] Remove principalsPrivate API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 <body> 1 <body>
2 <script> 2 <script>
3 3
4 window.testStatus = ''; 4 window.testStatus = '';
5 var objects = ['runtime', 'require', 'test', 'binding']; 5 var objects = ['runtime', 'require', 'test', 'binding', 'Binding', '$set', 'expo rts', 'requireNative', 'requireAsync', 'privates'];
asargent_no_longer_on_chrome 2016/03/16 22:17:24 was this intended to be part of this CL?
Devlin 2016/03/16 22:58:01 Most definitely not. Thanks :)
6 var leaked = []; 6 var leaked = [];
7 7
8 function intercept(objectKey) { 8 function intercept(objectKey) {
9 Object.defineProperty(Object.prototype, objectKey, { 9 Object.defineProperty(Object.prototype, objectKey, {
10 get: function () { 10 get: function () {
11 leaked.push({name: objectKey, obj: this}); 11 leaked.push({name: objectKey, obj: this});
12 }, 12 },
13 set: function (v) { 13 set: function (v) {
14 Object.defineProperty(this, objectKey, { 14 Object.defineProperty(this, objectKey, {
15 value: v, 15 value: v,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 'Failed: Found ' + key + ' on ' + nameAndObj.name + '\n'; 47 'Failed: Found ' + key + ' on ' + nameAndObj.name + '\n';
48 } 48 }
49 } 49 }
50 } 50 }
51 51
52 if (window.testStatus === '') 52 if (window.testStatus === '')
53 window.testStatus = 'success'; 53 window.testStatus = 'success';
54 54
55 </script> 55 </script>
56 </body> 56 </body>
OLDNEW
« no previous file with comments | « chrome/common/extensions/permissions/permission_set_unittest.cc ('k') | extensions/common/permissions/api_permission.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698