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

Issue 2659833002: [MD settings] Data driven content setting subtext (Closed)

Created:
3 years, 11 months ago by dschuyler
Modified:
3 years, 10 months ago
Reviewers:
tommycli, Dan Beam
CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, arv+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[MD settings] Data driven content setting subtext This CL removes the large computeCategoryDesc function and changes to a data-from-html method. This saves 20% to 50% of the setup time on the chrome://md-settings/content page (a happy side-effect reducing the JS needed to get the status label). BUG=None CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2659833002 Cr-Commit-Position: refs/heads/master@{#446844} Committed: https://chromium.googlesource.com/chromium/src/+/e9bb765477ee57a6bee2545dd3eae38b232f547e

Patch Set 1 #

Total comments: 16

Patch Set 2 : nits #

Patch Set 3 : unit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -177 lines) Patch
M chrome/browser/resources/settings/site_settings/site_settings_behavior.js View 1 chunk +0 lines, -110 lines 0 comments Download
M chrome/browser/resources/settings/site_settings_page/site_settings_page.html View 1 13 chunks +80 lines, -13 lines 0 comments Download
M chrome/browser/resources/settings/site_settings_page/site_settings_page.js View 1 5 chunks +23 lines, -11 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/webui/settings/category_default_setting_tests.js View 1 2 1 chunk +0 lines, -43 lines 0 comments Download
A chrome/test/data/webui/settings/site_settings_page_browsertest.js View 1 2 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (19 generated)
dschuyler
3 years, 11 months ago (2017-01-27 00:19:54 UTC) #5
tommycli
LGTM excellent change. less code more speed. https://codereview.chromium.org/2659833002/diff/1/chrome/browser/resources/settings/site_settings_page/site_settings_page.html File chrome/browser/resources/settings/site_settings_page/site_settings_page.html (right): https://codereview.chromium.org/2659833002/diff/1/chrome/browser/resources/settings/site_settings_page/site_settings_page.html#newcode33 chrome/browser/resources/settings/site_settings_page/site_settings_page.html:33: </div> Okay ...
3 years, 11 months ago (2017-01-27 00:36:52 UTC) #6
Dan Beam
https://codereview.chromium.org/2659833002/diff/1/chrome/browser/resources/settings/site_settings_page/site_settings_page.html File chrome/browser/resources/settings/site_settings_page/site_settings_page.html (right): https://codereview.chromium.org/2659833002/diff/1/chrome/browser/resources/settings/site_settings_page/site_settings_page.html#newcode33 chrome/browser/resources/settings/site_settings_page/site_settings_page.html:33: </div> On 2017/01/27 00:36:52, tommycli wrote: > Okay now ...
3 years, 11 months ago (2017-01-27 01:03:08 UTC) #7
dschuyler
On 2017/01/27 01:03:08, Dan Beam wrote: > https://codereview.chromium.org/2659833002/diff/1/chrome/browser/resources/settings/site_settings_page/site_settings_page.html > File > chrome/browser/resources/settings/site_settings_page/site_settings_page.html > (right): > ...
3 years, 11 months ago (2017-01-27 01:49:25 UTC) #8
Dan Beam
aight, let's give it a go, then i suppose now that \n are OK and ...
3 years, 11 months ago (2017-01-27 01:55:33 UTC) #10
dschuyler
Removed old unit test for the function that was removed; Added new unit test for ...
3 years, 10 months ago (2017-01-27 22:29:17 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2659833002/40001
3 years, 10 months ago (2017-01-28 00:14:03 UTC) #24
commit-bot: I haz the power
3 years, 10 months ago (2017-01-28 00:24:48 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/e9bb765477ee57a6bee2545dd3ea...

Powered by Google App Engine
This is Rietveld 408576698