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

Issue 11434024: Support extension highlighting on the extensions page. (Closed)

Created:
8 years ago by Finnur
Modified:
8 years ago
CC:
chromium-reviews, arv (Not doing code reviews), chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Support extension highlighting on the extensions page. BUG=153137 TEST=Add a ?id=<extension_id> to the chrome://extensions page url and that extension should become highlighted. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170561

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -0 lines) Patch
M chrome/browser/resources/extensions/extension_list.js View 1 2 chunks +17 lines, -0 lines 4 comments Download
M chrome/browser/resources/extensions/extensions.css View 1 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Finnur
https://codereview.chromium.org/11434024/diff/1/chrome/browser/resources/extensions/extension_list.js File chrome/browser/resources/extensions/extension_list.js (right): https://codereview.chromium.org/11434024/diff/1/chrome/browser/resources/extensions/extension_list.js#newcode55 chrome/browser/resources/extensions/extension_list.js:55: $(id_to_highlight).scrollIntoView(); After fighting with this for a while I'm ...
8 years ago (2012-11-29 04:07:33 UTC) #1
Aaron Boodman
Seems reasonable to me. https://codereview.chromium.org/11434024/diff/1/chrome/browser/resources/extensions/extension_list.js File chrome/browser/resources/extensions/extension_list.js (right): https://codereview.chromium.org/11434024/diff/1/chrome/browser/resources/extensions/extension_list.js#newcode55 chrome/browser/resources/extensions/extension_list.js:55: $(id_to_highlight).scrollIntoView(); On 2012/11/29 04:07:34, Finnur ...
8 years ago (2012-11-29 21:39:40 UTC) #2
Finnur
I converted it to use parseQueryParams, changed the highlighting to look like the mock and ...
8 years ago (2012-11-30 19:12:45 UTC) #3
Finnur
s/to that/so that/. On 2012/11/30 19:12:45, Finnur wrote: > I converted it to use parseQueryParams, ...
8 years ago (2012-11-30 19:18:35 UTC) #4
Aaron Boodman
lgtm
8 years ago (2012-11-30 19:49:23 UTC) #5
Aaron Boodman
+jhawkins for OWNERS
8 years ago (2012-11-30 20:07:33 UTC) #6
James Hawkins
LGTM with nits. https://codereview.chromium.org/11434024/diff/9001/chrome/browser/resources/extensions/extension_list.js File chrome/browser/resources/extensions/extension_list.js (right): https://codereview.chromium.org/11434024/diff/9001/chrome/browser/resources/extensions/extension_list.js#newcode60 chrome/browser/resources/extensions/extension_list.js:60: (1.2 * $(id_to_highlight).clientHeight); nit: Pull 1.2 ...
8 years ago (2012-11-30 20:11:05 UTC) #7
Finnur
8 years ago (2012-11-30 21:49:28 UTC) #8
Thanks for taking a look James.

https://codereview.chromium.org/11434024/diff/9001/chrome/browser/resources/e...
File chrome/browser/resources/extensions/extension_list.js (right):

https://codereview.chromium.org/11434024/diff/9001/chrome/browser/resources/e...
chrome/browser/resources/extensions/extension_list.js:60: (1.2 *
$(id_to_highlight).clientHeight);
const are not allowed in strict mode, but I factored this out of the equation. 

On 2012/11/30 20:11:05, James Hawkins wrote:
> nit: Pull 1.2 out into a constant.

https://codereview.chromium.org/11434024/diff/9001/chrome/browser/resources/e...
chrome/browser/resources/extensions/extension_list.js:90: var id_to_highlight =
parseQueryParams(document.location)['id'];
On 2012/11/30 20:11:05, James Hawkins wrote:
> Optional nit: Pull parseQueryParams...; out into a helper method to reduce
> fragility, e.g., getIdQueryParam() or something.

Done.

Powered by Google App Engine
This is Rietveld 408576698