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

Issue 7794023: Convert chrome://extensions to a settings page within the options pages. (Closed)

Created:
9 years, 3 months ago by Finnur
Modified:
9 years, 3 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, mihaip+watch_chromium.org, Glen Murphy, James Hawkins, Evan Stade
Visibility:
Public.

Description

Convert chrome://extensions to a settings page within the options pages. BUG=87378 TEST=The new settings page (chrome://settings/extensionSettings) should work the same as the old one (chrome://extensions). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99402

Patch Set 1 #

Patch Set 2 : sync up plus missing gypi file #

Patch Set 3 : Fixing a test #

Patch Set 4 : Someone modified .grd between uploads :) #

Total comments: 10

Patch Set 5 : '' #

Total comments: 85

Patch Set 6 : '' #

Total comments: 8

Patch Set 7 : '' #

Total comments: 30
Unified diffs Side-by-side diffs Delta from patch set Stats (+1780 lines, -420 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 4 chunks +18 lines, -1 line 0 comments Download
A chrome/browser/resources/options/extension_list.js View 1 2 3 4 5 1 chunk +684 lines, -0 lines 25 comments Download
A chrome/browser/resources/options/extension_settings.css View 1 2 3 4 5 6 1 chunk +261 lines, -0 lines 2 comments Download
A chrome/browser/resources/options/extension_settings.html View 1 2 3 4 5 6 1 chunk +40 lines, -0 lines 1 comment Download
A chrome/browser/resources/options/extension_settings.js View 1 2 3 4 5 1 chunk +179 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/options.html View 1 2 3 4 5 4 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/options.js View 1 2 3 4 5 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/options_bundle.js View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/browser/resources/options/pack_extension_overlay.css View 1 chunk +18 lines, -0 lines 0 comments Download
A chrome/browser/resources/options/pack_extension_overlay.html View 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/browser/resources/options/pack_extension_overlay.js View 1 2 3 4 5 1 chunk +90 lines, -0 lines 2 comments Download
M chrome/browser/resources/options/zippy.png View Binary file 0 comments Download
M chrome/browser/ui/webui/options/extension_settings_handler.h View 1 2 3 4 5 9 chunks +32 lines, -71 lines 0 comments Download
M chrome/browser/ui/webui/options/extension_settings_handler.cc View 1 2 3 4 5 27 chunks +254 lines, -342 lines 0 comments Download
M chrome/browser/ui/webui/options/options_ui.cc View 1 2 3 4 5 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/options_ui_uitest.cc View 1 2 3 4 5 1 chunk +7 lines, -6 lines 0 comments Download
A chrome/browser/ui/webui/options/pack_extension_handler.h View 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/options/pack_extension_handler.cc View 1 2 3 4 1 chunk +99 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Finnur
Aaron, this is mostly a continuation of what you reviewed last time, except now following ...
9 years, 3 months ago (2011-08-30 20:14:00 UTC) #1
Aaron Boodman
You should get someone who did work on the settings UI to review the html/css/js. ...
9 years, 3 months ago (2011-08-31 18:22:44 UTC) #2
Finnur
Sure, I'll find someone who knows the Settings pages. Thanks for reviewing. http://codereview.chromium.org/7794023/diff/7001/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd ...
9 years, 3 months ago (2011-08-31 20:22:01 UTC) #3
Finnur
csilv, can you take a look at the new Settings page? I'll send you a ...
9 years, 3 months ago (2011-08-31 20:24:08 UTC) #4
csilv
Sorry for the delay Finnur, I'll have this review complete first thing in the morning.
9 years, 3 months ago (2011-09-01 04:34:09 UTC) #5
Finnur
Thanks for the heads up. Appreciate a quick response, since time is of the essence ...
9 years, 3 months ago (2011-09-01 16:15:33 UTC) #6
csilv
Partial code review... I'll followup with the rest. cc jhawkins, estade FYI. http://codereview.chromium.org/7794023/diff/14001/chrome/browser/resources/options/extension_list.js File chrome/browser/resources/options/extension_list.js ...
9 years, 3 months ago (2011-09-01 19:52:53 UTC) #7
csilv
Here's the rest of my code review. http://codereview.chromium.org/7794023/diff/14001/chrome/browser/resources/options/extension_settings.js File chrome/browser/resources/options/extension_settings.js (right): http://codereview.chromium.org/7794023/diff/14001/chrome/browser/resources/options/extension_settings.js#newcode43 chrome/browser/resources/options/extension_settings.js:43: localStrings.getString('suggestGallery'); This ...
9 years, 3 months ago (2011-09-01 21:10:45 UTC) #8
Finnur
Phew. Addressed the comments! PTAL. http://codereview.chromium.org/7794023/diff/14001/chrome/browser/resources/options/extension_list.js File chrome/browser/resources/options/extension_list.js (right): http://codereview.chromium.org/7794023/diff/14001/chrome/browser/resources/options/extension_list.js#newcode30 chrome/browser/resources/options/extension_list.js:30: InitControlsAndHandlers_: function() { On ...
9 years, 3 months ago (2011-09-02 13:58:47 UTC) #9
csilv
Pretty close, just a few things I'd like you fix. http://codereview.chromium.org/7794023/diff/14001/chrome/browser/resources/options/extension_settings.css File chrome/browser/resources/options/extension_settings.css (right): http://codereview.chromium.org/7794023/diff/14001/chrome/browser/resources/options/extension_settings.css#newcode23 ...
9 years, 3 months ago (2011-09-02 17:41:10 UTC) #10
Finnur
Done. http://codereview.chromium.org/7794023/diff/26001/chrome/browser/resources/options/extension_settings.css File chrome/browser/resources/options/extension_settings.css (right): http://codereview.chromium.org/7794023/diff/26001/chrome/browser/resources/options/extension_settings.css#newcode7 chrome/browser/resources/options/extension_settings.css:7: .hbox { On 2011/09/02 17:41:11, csilv wrote: > ...
9 years, 3 months ago (2011-09-02 18:01:39 UTC) #11
csilv
LGTM
9 years, 3 months ago (2011-09-02 18:03:58 UTC) #12
arv (Not doing code reviews)
9 years, 3 months ago (2011-09-06 20:55:47 UTC) #13
Sorry for not looking at this earlier.

Most of the comments are just nits/style violations.

http://codereview.chromium.org/7794023/diff/14001/chrome/browser/resources/op...
File chrome/browser/resources/options/extension_settings.html (right):

http://codereview.chromium.org/7794023/diff/14001/chrome/browser/resources/op...
chrome/browser/resources/options/extension_settings.html:34: <image
src="chrome://theme/IDR_WEBSTORE_ICON_32" />
<img>

<image> is an IE compat quirk

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
File chrome/browser/resources/options/extension_list.js (right):

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_list.js:50:
document.addEventListener('keyup', this.upEventHandler_.bind(this));
Is there a reason why these are added to document?

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_list.js:61: *                of
extension that had the details section expanded.
Nit: indent 4 spaces

* @param {Array} showingDetails An array that will contain the list of id's
*     of extension that had the details section expanded.

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_list.js:79: if (!(butterBar === null)
&& !butterBar.hidden)
if (butterBar && !butterBar.hidden)

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_list.js:98: var minCheckboxWidth =
999999;
or maybe 

var minCheckboxWidth = Infinity;

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_list.js:102: for (var i = 0; i <
this.data_.extensions.length; ++i) {
prefer i++ for consistency

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_list.js:135: var vbox_outer =
this.ownerDocument.createElement('div');
no underscores in JS

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_list.js:152: div =
this.ownerDocument.createElement('div');
missing var

consider using strict mode to get warnings about this

cr.define('options', function() {
  'use strict';

  ...
});

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_list.js:160: icon =
this.ownerDocument.createElement('img');
missing var

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_list.js:213:
localStrings.getString('extensionSettingsVisitWebsite');
indentation

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_list.js:239: if
(!extension.mayDisable)
or 

input.disabled = !extension.mayDisable;

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_list.js:249:
label.setAttribute('for', 'toggle-' + id);
label.htmlFor = ...

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_list.js:261: if (label.offsetWidth >
maxCheckboxWidth)
Can you move this to the end to prevent extra layouts?

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_list.js:263: if (label.offsetWidth <
minCheckboxWidth)
same with this one

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_list.js:283: if (label.offsetWidth <
maxCheckboxWidth)
offsetWidth causes layout which are slow. You might want to defer this to later

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_list.js:284: label.style.marginRight
= difference.toString() + 'px';
label.style.WebkitMarginEnd = ...

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_list.js:301: var details_contents =
this.ownerDocument.createElement('div');
detailsContents

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_list.js:318:
localStrings.getString('extensionSettingsExtensionId') +
indentation

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_list.js:400:
content.appendChild(link);
This looks like copy pasted code. Can you create a function?

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_list.js:462: $(zippy).style.display =
(itemsShown > 0) ? 'block' : 'none';
no parentheses

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_list.js:462: $(zippy).style.display =
(itemsShown > 0) ? 'block' : 'none';
Can you use $(zippy).hidden = ...?

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_list.js:471: for (var i = 0; i <
this.data_.extensions.length; ++i) {
indexOf?

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_list.js:484: findIdNode_:
function(node) {
move off prototype? If you do not depend on this in a private method consider
making it a function instead.

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_list.js:485: while (node.id.length ==
0) {
while (node && !node.id) {
  node = node.parentNode;
}
return node;

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_list.js:509:
zippy.classList.remove('extension-zippy-expanded');
this is fine for this patch but why do we have a class for both expanded and
collapsed. Only using one would simplify things

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_list.js:517: var butterBar =
this.ownerDocument.getElementById(
or

this.querySelector('#' + iter.id + '_incognitoWarning')

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
File chrome/browser/resources/options/extension_settings.css (right):

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_settings.css:111: padding-right: 5px;
-webkit-padding-end?

http://dev.chromium.org/developers/web-development-style-guide

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
File chrome/browser/resources/options/extension_settings.html (right):

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/extension_settings.html:36: <image
src="chrome://theme/IDR_WEBSTORE_ICON_32">
<img>

<image> is an IE compat quirk

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
File chrome/browser/resources/options/pack_extension_overlay.js (right):

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/pack_extension_overlay.js:11: * @class
@constructor

http://codereview.chromium.org/7794023/diff/26005/chrome/browser/resources/op...
chrome/browser/resources/options/pack_extension_overlay.js:52: @private
* @private

Powered by Google App Engine
This is Rietveld 408576698