| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 var normalizeArgumentsAndValidate = | 5 var normalizeArgumentsAndValidate = | 
| 6     require('schemaUtils').normalizeArgumentsAndValidate | 6     require('schemaUtils').normalizeArgumentsAndValidate | 
| 7 var sendRequest = require('sendRequest').sendRequest; | 7 var sendRequest = require('sendRequest').sendRequest; | 
| 8 | 8 | 
| 9 function extendSchema(schema) { | 9 function extendSchema(schema) { | 
| 10   var extendedSchema = $Array.slice(schema); | 10   var extendedSchema = $Array.slice(schema); | 
| (...skipping 20 matching lines...) Expand all  Loading... | 
| 31           $Array.concat([namespace], args), | 31           $Array.concat([namespace], args), | 
| 32           extendSchema(funSchema.definition.parameters), | 32           extendSchema(funSchema.definition.parameters), | 
| 33           {preserveNullInObjects: true}); | 33           {preserveNullInObjects: true}); | 
| 34     }; | 34     }; | 
| 35   } | 35   } | 
| 36   var apiFunctions = ['get', 'set', 'remove', 'clear', 'getBytesInUse']; | 36   var apiFunctions = ['get', 'set', 'remove', 'clear', 'getBytesInUse']; | 
| 37   $Array.forEach(apiFunctions, bindApiFunction); | 37   $Array.forEach(apiFunctions, bindApiFunction); | 
| 38 } | 38 } | 
| 39 | 39 | 
| 40 exports.StorageArea = StorageArea; | 40 exports.StorageArea = StorageArea; | 
| OLD | NEW | 
|---|