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

Issue 2254113002: MD Settings: reduce complexity and overhead of prefs singleton (Closed)

Created:
4 years, 4 months ago by michaelpg
Modified:
4 years, 4 months ago
Reviewers:
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
Base URL:
https://chromium.googlesource.com/chromium/src.git@SimplifyLanguages
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: reduce complexity and overhead of prefs singleton Remove <settings-prefs-singleton> and put all the logic in <settings-prefs>. No more custom listeners or fragile test structures. This depends on removing <settings-languages-singleton>. BUG=638802 R=dbeam@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/190a0525f1b960e8f241819421cc94c0f0e0f38a Cr-Commit-Position: refs/heads/master@{#413062}

Patch Set 1 #

Patch Set 2 : closure #

Patch Set 3 : test fix #

Total comments: 3

Patch Set 4 : Nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -193 lines) Patch
M chrome/browser/resources/settings/prefs/prefs.js View 1 2 3 5 chunks +13 lines, -150 lines 0 comments Download
M chrome/test/data/webui/settings/fake_settings_private.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/webui/settings/languages_tests.js View 1 2 3 2 chunks +15 lines, -15 lines 0 comments Download
M chrome/test/data/webui/settings/passwords_and_forms_browsertest.js View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/test/data/webui/settings/prefs_tests.js View 4 chunks +5 lines, -25 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 10 (4 generated)
michaelpg
This is the thing groby@ mentioned seeing weird events for. Figured it was easier to ...
4 years, 4 months ago (2016-08-18 04:22:05 UTC) #2
Dan Beam
lgtm https://codereview.chromium.org/2254113002/diff/40001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (right): https://codereview.chromium.org/2254113002/diff/40001/chrome/browser/resources/settings/prefs/prefs.js#newcode183 chrome/browser/resources/settings/prefs/prefs.js:183: if (e.path == 'prefs') nit: maybe combine with ...
4 years, 4 months ago (2016-08-18 05:00:13 UTC) #3
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/2254113002/60001
4 years, 4 months ago (2016-08-19 04:52:39 UTC) #6
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-19 06:04:22 UTC) #7
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/190a0525f1b960e8f241819421cc94c0f0e0f38a Cr-Commit-Position: refs/heads/master@{#413062}
4 years, 4 months ago (2016-08-19 06:08:06 UTC) #9
michaelpg
4 years, 4 months ago (2016-08-19 17:25:24 UTC) #10
Message was sent while issue was closed.
(landed, just sending draft)

https://codereview.chromium.org/2254113002/diff/40001/chrome/browser/resource...
File chrome/browser/resources/settings/prefs/prefs.js (right):

https://codereview.chromium.org/2254113002/diff/40001/chrome/browser/resource...
chrome/browser/resources/settings/prefs/prefs.js:183: if (e.path == 'prefs')
On 2016/08/18 05:00:12, Dan Beam wrote:
> nit: maybe combine with above?

Done.

Powered by Google App Engine
This is Rietveld 408576698