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

Side by Side Diff: chrome/browser/resources/extensions/extension_list.js

Issue 9705083: Unknown options in extension manifest file are silently ignored (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed an accedentally-included file Created 8 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 // 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 cr.define('options', function() { 5 cr.define('options', function() {
6 'use strict'; 6 'use strict';
7 7
8 /** 8 /**
9 * A lookup helper function to find the first node that has an id (starting 9 * A lookup helper function to find the first node that has an id (starting
10 * at |node| and going up the parent chain). 10 * at |node| and going up the parent chain).
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 ]); 225 ]);
226 }); 226 });
227 227
228 if (i < extension.views.length - 1) { 228 if (i < extension.views.length - 1) {
229 link = link.cloneNode(true); 229 link = link.cloneNode(true);
230 activeViews.appendChild(link); 230 activeViews.appendChild(link);
231 } 231 }
232 }); 232 });
233 } 233 }
234 234
235 // Then unrecognized manifest keys
James Hawkins 2012/04/08 20:33:23 nit: Please turn this into a complete sentence.
James Hawkins 2012/04/08 20:33:23 nit: Add a period at the end of the sentence.
not at google - send to devlin 2012/04/10 02:02:32 Note that the existing comments above are already
mitchellwrosen 2012/04/28 19:02:39 Done.
mitchellwrosen 2012/04/28 19:02:39 Done.
mitchellwrosen 2012/04/28 19:02:39 Done.
236 if (extension.unrecognizedKeys.length > 0) {
237 var unrecognizedKeys = node.querySelector('.unrecognized-keys');
238 unrecognizedKeys.hidden = false;
239 var keys = unrecognizedKeys.querySelector('span:nth-of-type(2)');
not at google - send to devlin 2012/04/10 02:02:32 Suggestion: make this an unordered list rather tha
mitchellwrosen 2012/04/28 19:02:39 Done.
240 keys.textContent = ' ' + extension.unrecognizedKeys[0];
241 for (var i = 1; i < extension.unrecognizedKeys.length; ++i) {
James Hawkins 2012/04/08 20:33:23 nit: i++
James Hawkins 2012/04/08 20:33:23 nit: No braces for single-line blocks.
not at google - send to devlin 2012/04/10 02:02:32 nit: use forEach here rather than a for loop
mitchellwrosen 2012/04/28 19:02:39 Done.
242 keys.textContent += ', ' + extension.unrecognizedKeys[i];
243 }
244 }
245
235 this.appendChild(node); 246 this.appendChild(node);
236 }, 247 },
237 }; 248 };
238 249
239 return { 250 return {
240 ExtensionsList: ExtensionsList 251 ExtensionsList: ExtensionsList
241 }; 252 };
242 }); 253 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698