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

Side by Side Diff: chrome/renderer/resources/extensions/media_galleries_custom_bindings.js

Issue 149213003: Cleanup: Fix some lint/style errors in extensions code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
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 // Custom binding for the Media Gallery API. 5 // Custom binding for the Media Gallery API.
6 6
7 var binding = require('binding').Binding.create('mediaGalleries'); 7 var binding = require('binding').Binding.create('mediaGalleries');
8 8 var blobNatives = requireNative('blob_natives');
9 var mediaGalleriesNatives = requireNative('mediaGalleries'); 9 var mediaGalleriesNatives = requireNative('mediaGalleries');
10 var blobNatives = requireNative('blob_natives');
11 10
12 var mediaGalleriesMetadata = {}; 11 var mediaGalleriesMetadata = {};
13 12
14 function createFileSystemObjectsAndUpdateMetadata(response) { 13 function createFileSystemObjectsAndUpdateMetadata(response) {
15 var result = null; 14 var result = null;
16 mediaGalleriesMetadata = {}; // Clear any previous metadata. 15 mediaGalleriesMetadata = {}; // Clear any previous metadata.
17 if (response) { 16 if (response) {
18 result = []; 17 result = [];
19 for (var i = 0; i < response.length; i++) { 18 for (var i = 0; i < response.length; i++) {
20 var filesystem = mediaGalleriesNatives.GetMediaFileSystemObject( 19 var filesystem = mediaGalleriesNatives.GetMediaFileSystemObject(
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 }); 77 });
79 78
80 apiFunctions.setUpdateArgumentsPostValidate('getMetadata', 79 apiFunctions.setUpdateArgumentsPostValidate('getMetadata',
81 function(mediaFile, options, callback) { 80 function(mediaFile, options, callback) {
82 var blobUuid = blobNatives.GetBlobUuid(mediaFile) 81 var blobUuid = blobNatives.GetBlobUuid(mediaFile)
83 return [blobUuid, options, callback]; 82 return [blobUuid, options, callback];
84 }); 83 });
85 }); 84 });
86 85
87 exports.binding = binding.generate(); 86 exports.binding = binding.generate();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698