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

Side by Side Diff: extensions/renderer/resources/image_util.js

Issue 1417513003: [Extensions] Don't allow built-in extensions code to be overridden (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Jochen's Created 5 years, 1 month 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // This function takes an object |imageSpec| with the key |path| - 5 // This function takes an object |imageSpec| with the key |path| -
6 // corresponding to the internet URL to be translated - and optionally 6 // corresponding to the internet URL to be translated - and optionally
7 // |width| and |height| which are the maximum dimensions to be used when 7 // |width| and |height| which are the maximum dimensions to be used when
8 // converting the image. 8 // converting the image.
9 function loadImageData(imageSpec, callbacks) { 9 function loadImageData(imageSpec, callbacks) {
10 var path = imageSpec.path; 10 var path = imageSpec.path;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 for (var index = 0; index < imageSpecs.length; index++) { 72 for (var index = 0; index < imageSpecs.length; index++) {
73 loading[index] = imageSpecs[index]; 73 loading[index] = imageSpecs[index];
74 loadImageData(imageSpecs[index], { 74 loadImageData(imageSpecs[index], {
75 oncomplete: on_complete_index(index, false, loading, finished, callbacks), 75 oncomplete: on_complete_index(index, false, loading, finished, callbacks),
76 onerror: on_complete_index(index, true, loading, finished, callbacks) 76 onerror: on_complete_index(index, true, loading, finished, callbacks)
77 }); 77 });
78 } 78 }
79 } 79 }
80 80
81 exports.loadImageData = loadImageData; 81 exports.$set('loadImageData', loadImageData);
82 exports.loadAllImages = loadAllImages; 82 exports.$set('loadAllImages', loadAllImages);
OLDNEW
« no previous file with comments | « extensions/renderer/resources/i18n_custom_bindings.js ('k') | extensions/renderer/resources/json_schema.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698