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

Issue 2681373002: MD Settings: Fix the Network Prediction toggle box. (Closed)

Created:
3 years, 10 months ago by tommycli
Modified:
3 years, 10 months ago
Reviewers:
stevenjb, 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: Fix the Network Prediction toggle box. In order to fix this toggle, I had to update the SettingsBooleanControlBehavior to support non 0/1 values for numeric prefs. BUG=664048 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2681373002 Cr-Commit-Position: refs/heads/master@{#450063} Committed: https://chromium.googlesource.com/chromium/src/+/898ecc48fb6440230a819bcbd113f90c0d0df11e

Patch Set 1 #

Patch Set 2 : fix comment #

Total comments: 2

Patch Set 3 : remove checked value #

Patch Set 4 : fix the merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -4 lines) Patch
M chrome/browser/resources/settings/controls/settings_boolean_control_behavior.js View 1 2 3 chunks +18 lines, -3 lines 0 comments Download
M chrome/browser/resources/settings/privacy_page/privacy_page.html View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/privacy_page/privacy_page.js View 1 2 3 3 chunks +25 lines, -0 lines 0 comments Download
M chrome/test/data/webui/settings/settings_toggle_button_tests.js View 1 2 1 chunk +49 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (14 generated)
tommycli
stevenjb: PTAL since you wrote this behavior. Thanks, - Tommy
3 years, 10 months ago (2017-02-09 17:56:22 UTC) #5
Dan Beam
general nit because this behavior is so high occurrence https://codereview.chromium.org/2681373002/diff/20001/chrome/browser/resources/settings/controls/settings_boolean_control_behavior.js File chrome/browser/resources/settings/controls/settings_boolean_control_behavior.js (right): https://codereview.chromium.org/2681373002/diff/20001/chrome/browser/resources/settings/controls/settings_boolean_control_behavior.js#newcode77 chrome/browser/resources/settings/controls/settings_boolean_control_behavior.js:77: ...
3 years, 10 months ago (2017-02-09 18:39:10 UTC) #6
stevenjb
On 2017/02/09 18:39:10, Dan Beam wrote: > general nit because this behavior is so high ...
3 years, 10 months ago (2017-02-09 18:58:38 UTC) #7
tommycli
https://codereview.chromium.org/2681373002/diff/20001/chrome/browser/resources/settings/controls/settings_boolean_control_behavior.js File chrome/browser/resources/settings/controls/settings_boolean_control_behavior.js (right): https://codereview.chromium.org/2681373002/diff/20001/chrome/browser/resources/settings/controls/settings_boolean_control_behavior.js#newcode77 chrome/browser/resources/settings/controls/settings_boolean_control_behavior.js:77: } On 2017/02/09 18:39:10, Dan Beam wrote: > can ...
3 years, 10 months ago (2017-02-09 19:19:22 UTC) #8
tommycli
On 2017/02/09 18:58:38, stevenjb wrote: > On 2017/02/09 18:39:10, Dan Beam wrote: > > general ...
3 years, 10 months ago (2017-02-09 19:20:56 UTC) #9
tommycli
dbeam/stevenjb: May I have a second look at this? I realize it adds another property ...
3 years, 10 months ago (2017-02-10 20:06:16 UTC) #11
stevenjb
I would still prefer a custom control here (can an element replace, i.e. override, a ...
3 years, 10 months ago (2017-02-10 21:03:46 UTC) #12
Dan Beam
On 2017/02/10 21:03:46, stevenjb wrote: > I would still prefer a custom control here (can ...
3 years, 10 months ago (2017-02-10 22:50:28 UTC) #13
stevenjb
Do we have a way to test with that level of accuracy? Unfortunately when I ...
3 years, 10 months ago (2017-02-10 22:51:53 UTC) #14
chromium-reviews
Hey guys, The perf impact was pretty much completely in the noise: FMP w/patch Memory ...
3 years, 10 months ago (2017-02-10 23:34:02 UTC) #15
stevenjb
I didn't expect this CL to have a measurable impact either, but I do have ...
3 years, 10 months ago (2017-02-11 00:16:44 UTC) #16
tommycli
On 2017/02/11 00:16:44, stevenjb wrote: > I didn't expect this CL to have a measurable ...
3 years, 10 months ago (2017-02-11 00:35:42 UTC) #19
Dan Beam
lgtm
3 years, 10 months ago (2017-02-11 00:42:46 UTC) #20
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/2681373002/40001
3 years, 10 months ago (2017-02-11 00:45:12 UTC) #23
commit-bot: I haz the power
Failed to apply patch for chrome/browser/resources/settings/privacy_page/privacy_page.js: While running git apply --index -p1; error: patch failed: ...
3 years, 10 months ago (2017-02-11 01:31:28 UTC) #25
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/2681373002/60001
3 years, 10 months ago (2017-02-13 18:59:51 UTC) #28
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/898ecc48fb6440230a819bcbd113f90c0d0df11e
3 years, 10 months ago (2017-02-13 20:31:03 UTC) #31
Dan Beam
3 years, 10 months ago (2017-02-14 05:16:49 UTC) #32
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2691223002/ by dbeam@chromium.org.

The reason for reverting is: Causing stack overflow errors on
chrome://md-settings.

Powered by Google App Engine
This is Rietveld 408576698