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

Issue 1019403002: Fetch and actually set prefs (using chrome.send for now). (Closed)

Created:
5 years, 9 months ago by Jeremy Klein
Modified:
5 years, 9 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, michaelpg+watch-options_chromium.org, khorimoto+watch-md-settings_chromium.org, michaelpg+watch-md-settings_chromium.org, jhawkins+watch-md-settings_chromium.org, orenb+watch-md-settings_chromium.org, arv+watch_chromium.org, stevenjb+watch-md-settings_chromium.org, jlklein+watch-md-settings_chromium.org, tbuckley_google.com
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fetch and actually set prefs (using chrome.send for now). Required wiring up the options handler for now, but that can all go away once settingsPrivate is ready. BUG= Committed: https://crrev.com/9ace848b1e29993c394e79404466f60c142c7bba Cr-Commit-Position: refs/heads/master@{#321506}

Patch Set 1 #

Patch Set 2 : Revert unintended change. #

Total comments: 4

Patch Set 3 : fix cros-only #

Total comments: 4

Patch Set 4 : unintended changes #

Total comments: 11

Patch Set 5 : a11y #

Patch Set 6 : imports! #

Patch Set 7 : Address comments from stevenjb #

Total comments: 27

Patch Set 8 : asserts -> assert #

Patch Set 9 : src -> href source -> src. *facepalm* #

Total comments: 28

Patch Set 10 : Address comments from michaelpg #

Patch Set 11 : dbeam's comments #

Patch Set 12 : One more round of michael comments. #

Total comments: 7

Patch Set 13 : comments from orenb #

Patch Set 14 : dan comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -102 lines) Patch
M chrome/browser/resources/settings/a11y_page/a11y_page.html View 1 2 3 4 4 chunks +17 lines, -12 lines 0 comments Download
M chrome/browser/resources/settings/downloads_page/downloads_page.html View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/settings/prefs/prefs.html View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/prefs/prefs.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +196 lines, -86 lines 1 comment Download
M chrome/browser/ui/webui/md_settings_ui.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/md_settings_ui.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +26 lines, -0 lines 0 comments Download
M ui/webui/resources/cr_elements/cr_dropdown_menu/cr_dropdown_menu.html View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
A ui/webui/resources/html/assert.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
A ui/webui/resources/html/cr.html View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M ui/webui/resources/webui_resources.grd View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (9 generated)
James Hawkins
https://codereview.chromium.org/1019403002/diff/20001/chrome/browser/ui/webui/md_settings_ui.h File chrome/browser/ui/webui/md_settings_ui.h (right): https://codereview.chromium.org/1019403002/diff/20001/chrome/browser/ui/webui/md_settings_ui.h#newcode18 chrome/browser/ui/webui/md_settings_ui.h:18: // Overridden from OptionsPageUIHandlerHost: // OptionsPageUIHandlerHost implementation. https://codereview.chromium.org/1019403002/diff/20001/chrome/browser/ui/webui/options/core_options_handler.cc File ...
5 years, 9 months ago (2015-03-19 22:23:34 UTC) #2
Jeremy Klein
Note that this doesn't add the cr-settings-* UI elements yet or the Preference object. It ...
5 years, 9 months ago (2015-03-19 22:39:44 UTC) #4
Kyle Horimoto
https://codereview.chromium.org/1019403002/diff/40001/chrome/browser/resources/settings/prefs/prefs.html File chrome/browser/resources/settings/prefs/prefs.html (right): https://codereview.chromium.org/1019403002/diff/40001/chrome/browser/resources/settings/prefs/prefs.html#newcode2 chrome/browser/resources/settings/prefs/prefs.html:2: <script src="chrome://resources/js/assert.js"></script> Using a <script> instead of a <link ...
5 years, 9 months ago (2015-03-19 22:42:11 UTC) #5
stevenjb
https://codereview.chromium.org/1019403002/diff/60001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (right): https://codereview.chromium.org/1019403002/diff/60001/chrome/browser/resources/settings/prefs/prefs.js#newcode57 chrome/browser/resources/settings/prefs/prefs.js:57: * Accessibility preferences state. This isn't accessibility specific, is ...
5 years, 9 months ago (2015-03-19 22:51:18 UTC) #7
Jeremy Klein
https://codereview.chromium.org/1019403002/diff/40001/chrome/browser/resources/settings/prefs/prefs.html File chrome/browser/resources/settings/prefs/prefs.html (right): https://codereview.chromium.org/1019403002/diff/40001/chrome/browser/resources/settings/prefs/prefs.html#newcode2 chrome/browser/resources/settings/prefs/prefs.html:2: <script src="chrome://resources/js/assert.js"></script> On 2015/03/19 22:42:11, Kyle Horimoto wrote: > ...
5 years, 9 months ago (2015-03-19 23:04:22 UTC) #8
stevenjb
Nice. LGTM. https://codereview.chromium.org/1019403002/diff/60001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (right): https://codereview.chromium.org/1019403002/diff/60001/chrome/browser/resources/settings/prefs/prefs.js#newcode121 chrome/browser/resources/settings/prefs/prefs.js:121: } On 2015/03/19 23:04:22, Jeremy Klein wrote: ...
5 years, 9 months ago (2015-03-19 23:08:24 UTC) #9
michaelpg
https://codereview.chromium.org/1019403002/diff/120001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (right): https://codereview.chromium.org/1019403002/diff/120001/chrome/browser/resources/settings/prefs/prefs.js#newcode43 chrome/browser/resources/settings/prefs/prefs.js:43: 'settings.a11y.large_cursor_enabled', nit: alphabetize. https://codereview.chromium.org/1019403002/diff/120001/chrome/browser/resources/settings/prefs/prefs.js#newcode57 chrome/browser/resources/settings/prefs/prefs.js:57: * Object containing all ...
5 years, 9 months ago (2015-03-19 23:39:08 UTC) #10
Dan Beam
https://codereview.chromium.org/1019403002/diff/160001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (right): https://codereview.chromium.org/1019403002/diff/160001/chrome/browser/resources/settings/prefs/prefs.js#newcode27 chrome/browser/resources/settings/prefs/prefs.js:27: * @const {!Array<string>} nit: you don't really need types ...
5 years, 9 months ago (2015-03-19 23:47:09 UTC) #12
michaelpg
https://codereview.chromium.org/1019403002/diff/160001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (right): https://codereview.chromium.org/1019403002/diff/160001/chrome/browser/resources/settings/prefs/prefs.js#newcode206 chrome/browser/resources/settings/prefs/prefs.js:206: var setFn = (value % 1 == 0) ? ...
5 years, 9 months ago (2015-03-19 23:53:58 UTC) #14
Jeremy Klein
https://codereview.chromium.org/1019403002/diff/120001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (right): https://codereview.chromium.org/1019403002/diff/120001/chrome/browser/resources/settings/prefs/prefs.js#newcode43 chrome/browser/resources/settings/prefs/prefs.js:43: 'settings.a11y.large_cursor_enabled', On 2015/03/19 23:39:07, michaelpg wrote: > nit: alphabetize. ...
5 years, 9 months ago (2015-03-20 00:03:15 UTC) #15
Jeremy Klein
https://codereview.chromium.org/1019403002/diff/160001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (right): https://codereview.chromium.org/1019403002/diff/160001/chrome/browser/resources/settings/prefs/prefs.js#newcode27 chrome/browser/resources/settings/prefs/prefs.js:27: * @const {!Array<string>} On 2015/03/19 23:47:09, Dan Beam wrote: ...
5 years, 9 months ago (2015-03-20 00:45:38 UTC) #16
Kyle Horimoto
lgtm
5 years, 9 months ago (2015-03-20 00:48:36 UTC) #17
michaelpg
lgtm https://codereview.chromium.org/1019403002/diff/120001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (right): https://codereview.chromium.org/1019403002/diff/120001/chrome/browser/resources/settings/prefs/prefs.js#newcode59 chrome/browser/resources/settings/prefs/prefs.js:59: * @attribute settings On 2015/03/20 00:03:15, Jeremy Klein ...
5 years, 9 months ago (2015-03-20 00:52:54 UTC) #18
Jeremy Klein
https://codereview.chromium.org/1019403002/diff/120001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (right): https://codereview.chromium.org/1019403002/diff/120001/chrome/browser/resources/settings/prefs/prefs.js#newcode59 chrome/browser/resources/settings/prefs/prefs.js:59: * @attribute settings On 2015/03/20 00:52:54, michaelpg wrote: > ...
5 years, 9 months ago (2015-03-20 00:58:35 UTC) #19
James Hawkins
lgtm
5 years, 9 months ago (2015-03-20 01:00:09 UTC) #20
Oren Blasberg
https://codereview.chromium.org/1019403002/diff/220001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (right): https://codereview.chromium.org/1019403002/diff/220001/chrome/browser/resources/settings/prefs/prefs.js#newcode29 chrome/browser/resources/settings/prefs/prefs.js:29: var PREFS_TO_FECTH = [ spelling: FETCH https://codereview.chromium.org/1019403002/diff/220001/chrome/browser/resources/settings/prefs/prefs.js#newcode78 chrome/browser/resources/settings/prefs/prefs.js:78: // ...
5 years, 9 months ago (2015-03-20 01:06:53 UTC) #22
Jeremy Klein
https://codereview.chromium.org/1019403002/diff/220001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (right): https://codereview.chromium.org/1019403002/diff/220001/chrome/browser/resources/settings/prefs/prefs.js#newcode29 chrome/browser/resources/settings/prefs/prefs.js:29: var PREFS_TO_FECTH = [ On 2015/03/20 01:06:53, Oren Blasberg ...
5 years, 9 months ago (2015-03-20 01:11:05 UTC) #23
Dan Beam
https://codereview.chromium.org/1019403002/diff/160001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (right): https://codereview.chromium.org/1019403002/diff/160001/chrome/browser/resources/settings/prefs/prefs.js#newcode118 chrome/browser/resources/settings/prefs/prefs.js:118: for (let i in pathPieces) { On 2015/03/20 00:45:38, ...
5 years, 9 months ago (2015-03-20 01:11:57 UTC) #25
Jeremy Klein
https://codereview.chromium.org/1019403002/diff/160001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (right): https://codereview.chromium.org/1019403002/diff/160001/chrome/browser/resources/settings/prefs/prefs.js#newcode118 chrome/browser/resources/settings/prefs/prefs.js:118: for (let i in pathPieces) { On 2015/03/20 01:11:56, ...
5 years, 9 months ago (2015-03-20 01:13:18 UTC) #26
Dan Beam
https://codereview.chromium.org/1019403002/diff/160001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (right): https://codereview.chromium.org/1019403002/diff/160001/chrome/browser/resources/settings/prefs/prefs.js#newcode206 chrome/browser/resources/settings/prefs/prefs.js:206: var setFn = (value % 1 == 0) ? ...
5 years, 9 months ago (2015-03-20 01:23:53 UTC) #27
Dan Beam
https://codereview.chromium.org/1019403002/diff/160001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (right): https://codereview.chromium.org/1019403002/diff/160001/chrome/browser/resources/settings/prefs/prefs.js#newcode118 chrome/browser/resources/settings/prefs/prefs.js:118: for (let i in pathPieces) { On 2015/03/20 01:13:18, ...
5 years, 9 months ago (2015-03-20 01:25:21 UTC) #28
Jeremy Klein
https://codereview.chromium.org/1019403002/diff/160001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (right): https://codereview.chromium.org/1019403002/diff/160001/chrome/browser/resources/settings/prefs/prefs.js#newcode118 chrome/browser/resources/settings/prefs/prefs.js:118: for (let i in pathPieces) { On 2015/03/20 01:13:18, ...
5 years, 9 months ago (2015-03-20 01:25:45 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1019403002/260001
5 years, 9 months ago (2015-03-20 01:28:20 UTC) #32
Dan Beam
why no BUG=?
5 years, 9 months ago (2015-03-20 01:29:47 UTC) #33
Jeremy Klein
On 2015/03/20 01:29:47, Dan Beam wrote: > why no BUG=? +tbuckley@, were you still going ...
5 years, 9 months ago (2015-03-20 01:33:50 UTC) #34
michaelpg
https://codereview.chromium.org/1019403002/diff/160001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (right): https://codereview.chromium.org/1019403002/diff/160001/chrome/browser/resources/settings/prefs/prefs.js#newcode206 chrome/browser/resources/settings/prefs/prefs.js:206: var setFn = (value % 1 == 0) ? ...
5 years, 9 months ago (2015-03-20 02:34:28 UTC) #35
commit-bot: I haz the power
Committed patchset #14 (id:260001)
5 years, 9 months ago (2015-03-20 03:22:56 UTC) #36
commit-bot: I haz the power
Patchset 14 (id:??) landed as https://crrev.com/9ace848b1e29993c394e79404466f60c142c7bba Cr-Commit-Position: refs/heads/master@{#321506}
5 years, 9 months ago (2015-03-20 03:23:47 UTC) #37
Dan Beam
https://codereview.chromium.org/1019403002/diff/260001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (right): https://codereview.chromium.org/1019403002/diff/260001/chrome/browser/resources/settings/prefs/prefs.js#newcode107 chrome/browser/resources/settings/prefs/prefs.js:107: for (let prefName in dict) { p.s. Chrome on ...
5 years, 9 months ago (2015-03-20 19:34:05 UTC) #38
Jeremy Klein
On 2015/03/20 19:34:05, Dan Beam wrote: > https://codereview.chromium.org/1019403002/diff/260001/chrome/browser/resources/settings/prefs/prefs.js > File chrome/browser/resources/settings/prefs/prefs.js (right): > > https://codereview.chromium.org/1019403002/diff/260001/chrome/browser/resources/settings/prefs/prefs.js#newcode107 ...
5 years, 9 months ago (2015-03-20 21:11:37 UTC) #39
stevenjb
On 2015/03/20 21:11:37, Jeremy Klein wrote: > On 2015/03/20 19:34:05, Dan Beam wrote: > > ...
5 years, 9 months ago (2015-03-20 22:38:37 UTC) #40
Dan Beam
5 years, 9 months ago (2015-03-20 23:14:27 UTC) #41
Message was sent while issue was closed.
On 2015/03/20 22:38:37, stevenjb wrote:
> On 2015/03/20 21:11:37, Jeremy Klein wrote:
> > On 2015/03/20 19:34:05, Dan Beam wrote:
> > >
> >
>
https://codereview.chromium.org/1019403002/diff/260001/chrome/browser/resourc...
> > > File chrome/browser/resources/settings/prefs/prefs.js (right):
> > > 
> > >
> >
>
https://codereview.chromium.org/1019403002/diff/260001/chrome/browser/resourc...
> > > chrome/browser/resources/settings/prefs/prefs.js:107: for (let prefName in
> > dict)
> > > {
> > > p.s. Chrome on iOS may not support `let` (arv@ reminded me)
> > 
> > Well this page won't run on ios (for the time-being), but is there an easy
> place
> > to look up chrome iOS support for sure? I can't seem to find iOS support on
> > http://chromestatus.com, https://kangax.github.io/compat-table/es6/,
caniuse,
> etc. It's
> > easy enough to just be safe and use var, but it would be really nice to
start
> > using es6 stuff.
> 
> We really do want to take advantage of the fact that this code will only ever
> run on Chrome. I think it is 99% safe to also assume that Chrome Settings UI
> will never run on iOS due to their restrictions.

chrome://history runs on iOS (pretty sure), and may eventually be redone in the
same way as settings (and maybe using similar shared code)

Powered by Google App Engine
This is Rietveld 408576698