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

Issue 1372053002: Flesh out the location-page class to make it more general. (Closed)

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

Description

Convert the location-page class into a general site-settings-category class that can handle showing any category. Also wire the toggle up to actual prefs and implement the UI for the site list below it. BUG=543635 Committed: https://crrev.com/1c386ff87977f702a5260314ff78dab1143304d5 Cr-Commit-Position: refs/heads/master@{#357346}

Patch Set 1 #

Patch Set 2 : Split list into two #

Total comments: 28

Patch Set 3 : Address feedback #

Total comments: 56

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 6

Patch Set 7 : Address feedback: CLs 4 through 7 (inclusive) #

Total comments: 9

Patch Set 8 : Polish #

Total comments: 40

Patch Set 9 : Address feedback #

Patch Set 10 : List population #

Total comments: 47

Patch Set 11 : Sync to head (no meaningful changes) #

Patch Set 12 : Address feedback #

Total comments: 6

Patch Set 13 : Address feedback from Michael #

Total comments: 33

Patch Set 14 : Address feedback from Michael #

Total comments: 28

Patch Set 15 : Address feedback from Dan and Michael #

Total comments: 4

Patch Set 16 : Address feedback #

Patch Set 17 : Sync to head #

Patch Set 18 #

Patch Set 19 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+884 lines, -203 lines) Patch
M chrome/app/settings_strings.grdp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +36 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/settings_private/prefs_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +32 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/advanced_page/advanced_page.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +6 lines, -4 lines 3 comments Download
M chrome/browser/resources/settings/advanced_page/advanced_page.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/languages_page/languages.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/settings/languages_page/languages.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 10 chunks +13 lines, -34 lines 0 comments Download
D chrome/browser/resources/settings/location_page/location_page.css View 1 2 3 1 chunk +0 lines, -7 lines 0 comments Download
D chrome/browser/resources/settings/location_page/location_page.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -47 lines 0 comments Download
D chrome/browser/resources/settings/location_page/location_page.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -94 lines 0 comments Download
A chrome/browser/resources/settings/prefs/prefs_behavior.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/resources/settings/prefs/prefs_behavior.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +35 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/settings_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +36 lines, -9 lines 0 comments Download
A chrome/browser/resources/settings/site_settings/constants.html View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/site_settings/constants.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +40 lines, -0 lines 0 comments Download
A + chrome/browser/resources/settings/site_settings/site_list.css View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/site_settings/site_list.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/site_settings/site_list.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +243 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/site_settings/site_settings_behavior.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/site_settings/site_settings_behavior.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +189 lines, -0 lines 0 comments Download
A + chrome/browser/resources/settings/site_settings/site_settings_category.css View 1 2 3 4 5 6 7 1 chunk +2 lines, -7 lines 0 comments Download
A chrome/browser/resources/settings/site_settings/site_settings_category.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/site_settings/site_settings_category.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +109 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +30 lines, -0 lines 0 comments Download

Messages

Total messages: 60 (13 generated)
Finnur
I've split the Allowed/Blocked list into a separate element. Would really appreciate you taking a ...
5 years, 2 months ago (2015-10-01 16:59:22 UTC) #2
Finnur
Ping... I'm getting a little worried about review turn-around time, and suspect it could prove ...
5 years, 2 months ago (2015-10-05 16:21:52 UTC) #3
Dan Beam
was busy wasn't doing reviews
5 years, 2 months ago (2015-10-05 16:23:25 UTC) #4
Dan Beam
https://codereview.chromium.org/1372053002/diff/20001/chrome/browser/resources/settings/location_page/location_page.html File chrome/browser/resources/settings/location_page/location_page.html (right): https://codereview.chromium.org/1372053002/diff/20001/chrome/browser/resources/settings/location_page/location_page.html#newcode2 chrome/browser/resources/settings/location_page/location_page.html:2: <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classes/iron-flex-layout.html"> why do you need this? https://codereview.chromium.org/1372053002/diff/20001/chrome/browser/resources/settings/location_page/site_list.js ...
5 years, 2 months ago (2015-10-05 16:52:58 UTC) #5
Dan Beam
what progress did this make today?
5 years, 2 months ago (2015-10-06 15:54:40 UTC) #6
Finnur
I've done most of what you said. I've been testing it lately and getting ready ...
5 years, 2 months ago (2015-10-06 16:04:00 UTC) #7
Finnur
Please take another look. I've converted the toggle to use prefs, so now that should ...
5 years, 2 months ago (2015-10-06 16:31:09 UTC) #10
Finnur
+stevenjb for OWNERS check on settings_strings.grdp
5 years, 2 months ago (2015-10-06 16:33:11 UTC) #12
Jeremy Klein
https://codereview.chromium.org/1372053002/diff/20001/chrome/browser/resources/settings/location_page/site_list.js File chrome/browser/resources/settings/location_page/site_list.js (right): https://codereview.chromium.org/1372053002/diff/20001/chrome/browser/resources/settings/location_page/site_list.js#newcode115 chrome/browser/resources/settings/location_page/site_list.js:115: }, On 2015/10/05 16:52:57, Dan Beam wrote: > all ...
5 years, 2 months ago (2015-10-06 17:07:21 UTC) #14
Finnur
Dan, I've got a question on using prefs for the list of sites, which I ...
5 years, 2 months ago (2015-10-07 12:10:48 UTC) #15
Dan Beam
+dschuyler, michaelpg: who's working on a list of dictionaries? is it done yet? if not: ...
5 years, 2 months ago (2015-10-07 15:20:32 UTC) #16
Dan Beam
https://codereview.chromium.org/1372053002/diff/20001/chrome/browser/resources/settings/location_page/site_list.js File chrome/browser/resources/settings/location_page/site_list.js (right): https://codereview.chromium.org/1372053002/diff/20001/chrome/browser/resources/settings/location_page/site_list.js#newcode115 chrome/browser/resources/settings/location_page/site_list.js:115: }, On 2015/10/06 17:07:21, Jeremy Klein wrote: > On ...
5 years, 2 months ago (2015-10-07 15:21:16 UTC) #17
dschuyler
On 2015/10/07 15:20:32, Dan Beam wrote: > +dschuyler, michaelpg: who's working on a list of ...
5 years, 2 months ago (2015-10-07 16:55:16 UTC) #18
Finnur
Ping...
5 years, 2 months ago (2015-10-09 15:05:20 UTC) #19
Dan Beam
On 2015/10/09 15:05:20, Finnur wrote: > Ping... what are you pinging? have you contact michael?
5 years, 2 months ago (2015-10-09 18:12:34 UTC) #20
Finnur
My hope was that we (as in you and I) could make some progress on ...
5 years, 2 months ago (2015-10-09 22:04:02 UTC) #21
Dan Beam
https://codereview.chromium.org/1372053002/diff/40001/chrome/browser/resources/settings/advanced_page/advanced_page.html File chrome/browser/resources/settings/advanced_page/advanced_page.html (right): https://codereview.chromium.org/1372053002/diff/40001/chrome/browser/resources/settings/advanced_page/advanced_page.html#newcode27 chrome/browser/resources/settings/advanced_page/advanced_page.html:27: <cr-settings-location-page prefs="{{prefs}}" why would a location-page need to know ...
5 years, 2 months ago (2015-10-10 01:27:41 UTC) #22
Dan Beam
overall this is looking better, but: a) we should mirror C++ constants to somewhere it's ...
5 years, 2 months ago (2015-10-10 01:29:11 UTC) #23
Finnur
Thanks for the review comments! > b) I understand a lot of this isn't working ...
5 years, 2 months ago (2015-10-15 15:46:34 UTC) #24
Finnur
Dan: I'd really appreciate hearing some feedback before EOD (your timezone) since that will ensure ...
5 years, 2 months ago (2015-10-16 15:59:22 UTC) #26
Dan Beam
https://codereview.chromium.org/1372053002/diff/120001/chrome/browser/resources/settings/advanced_page/advanced_page.js File chrome/browser/resources/settings/advanced_page/advanced_page.js (right): https://codereview.chromium.org/1372053002/diff/120001/chrome/browser/resources/settings/advanced_page/advanced_page.js#newcode43 chrome/browser/resources/settings/advanced_page/advanced_page.js:43: this.$.locationCategory.category = why wouldn't the location category itself do ...
5 years, 2 months ago (2015-10-19 07:18:07 UTC) #27
Dan Beam
https://codereview.chromium.org/1372053002/diff/40001/chrome/browser/resources/settings/location_page/site_list.js File chrome/browser/resources/settings/location_page/site_list.js (right): https://codereview.chromium.org/1372053002/diff/40001/chrome/browser/resources/settings/location_page/site_list.js#newcode245 chrome/browser/resources/settings/location_page/site_list.js:245: return 'communication:message'; // TODO(finnur): Implement actual favicons. On 2015/10/15 ...
5 years, 2 months ago (2015-10-19 07:24:27 UTC) #28
Finnur
Thanks for the review feedback. Really appreciated it. https://codereview.chromium.org/1372053002/diff/40001/chrome/browser/resources/settings/location_page/site_list.js File chrome/browser/resources/settings/location_page/site_list.js (right): https://codereview.chromium.org/1372053002/diff/40001/chrome/browser/resources/settings/location_page/site_list.js#newcode245 chrome/browser/resources/settings/location_page/site_list.js:245: return ...
5 years, 2 months ago (2015-10-19 13:53:59 UTC) #29
michaelpg
Just getting to this after two weeks in India :-) On 2015/10/07 12:10:48, Finnur wrote: ...
5 years, 2 months ago (2015-10-21 03:22:41 UTC) #30
Finnur
Thanks, Michael. These changes seem to work well and allow me to show the site ...
5 years, 2 months ago (2015-10-22 14:51:34 UTC) #31
Finnur
Clarification: https://codereview.chromium.org/1372053002/diff/180001/chrome/browser/extensions/api/settings_private/prefs_util.cc File chrome/browser/extensions/api/settings_private/prefs_util.cc (right): https://codereview.chromium.org/1372053002/diff/180001/chrome/browser/extensions/api/settings_private/prefs_util.cc#newcode126 chrome/browser/extensions/api/settings_private/prefs_util.cc:126: (*s_whitelist)["profile.default_content_setting_values.popups"] = The changes above this line are ...
5 years, 2 months ago (2015-10-22 14:51:46 UTC) #32
michaelpg
Some comments. Still need to look over site_settings_category.* https://codereview.chromium.org/1372053002/diff/180001/chrome/app/settings_strings.grdp File chrome/app/settings_strings.grdp (right): https://codereview.chromium.org/1372053002/diff/180001/chrome/app/settings_strings.grdp#newcode426 chrome/app/settings_strings.grdp:426: <message ...
5 years, 2 months ago (2015-10-22 16:11:34 UTC) #33
Finnur
Feedback addressed. PTAL. https://codereview.chromium.org/1372053002/diff/180001/chrome/app/settings_strings.grdp File chrome/app/settings_strings.grdp (right): https://codereview.chromium.org/1372053002/diff/180001/chrome/app/settings_strings.grdp#newcode426 chrome/app/settings_strings.grdp:426: <message name="IDS_SETTINGS_SITE_SETTINGS_ASK_FIRST_RECOMMENDED" desc="Label for ask first ...
5 years, 1 month ago (2015-10-26 14:38:05 UTC) #36
michaelpg
https://codereview.chromium.org/1372053002/diff/180001/chrome/browser/resources/settings/site_settings/site_settings_behavior.js File chrome/browser/resources/settings/site_settings/site_settings_behavior.js (right): https://codereview.chromium.org/1372053002/diff/180001/chrome/browser/resources/settings/site_settings/site_settings_behavior.js#newcode17 chrome/browser/resources/settings/site_settings/site_settings_behavior.js:17: getPref_: function(prefPath) { On 2015/10/26 14:38:05, Finnur wrote: > ...
5 years, 1 month ago (2015-10-26 22:15:22 UTC) #37
Finnur
https://codereview.chromium.org/1372053002/diff/260001/chrome/browser/resources/settings/site_settings/site_settings_category.html File chrome/browser/resources/settings/site_settings/site_settings_category.html (right): https://codereview.chromium.org/1372053002/diff/260001/chrome/browser/resources/settings/site_settings/site_settings_category.html#newcode25 chrome/browser/resources/settings/site_settings/site_settings_category.html:25: <paper-toggle-button id="toggle" checked="{{categoryEnabled}}" I haven't updated the code, just ...
5 years, 1 month ago (2015-10-26 23:39:21 UTC) #38
Finnur
Addressed. PTAL. https://codereview.chromium.org/1372053002/diff/180001/chrome/browser/resources/settings/site_settings/site_settings_behavior.js File chrome/browser/resources/settings/site_settings/site_settings_behavior.js (right): https://codereview.chromium.org/1372053002/diff/180001/chrome/browser/resources/settings/site_settings/site_settings_behavior.js#newcode17 chrome/browser/resources/settings/site_settings/site_settings_behavior.js:17: getPref_: function(prefPath) { I suspect you are ...
5 years, 1 month ago (2015-10-27 11:30:48 UTC) #39
Finnur
Ping...
5 years, 1 month ago (2015-10-28 10:01:55 UTC) #40
michaelpg
Suggesting some name changes, and a couple things that confuse me or might be bugs. ...
5 years, 1 month ago (2015-10-28 18:02:21 UTC) #41
Finnur
All addressed/commented on. PTAL. https://codereview.chromium.org/1372053002/diff/280001/chrome/browser/resources/settings/site_settings/site_list.js File chrome/browser/resources/settings/site_settings/site_list.js (right): https://codereview.chromium.org/1372053002/diff/280001/chrome/browser/resources/settings/site_settings/site_list.js#newcode34 chrome/browser/resources/settings/site_settings/site_list.js:34: selectedOrigin: { Technically, Origin is ...
5 years, 1 month ago (2015-10-29 12:21:22 UTC) #42
michaelpg
LGTM, modulo my question about the ALLOW list and 2 indent nits. Thanks! https://codereview.chromium.org/1372053002/diff/280001/chrome/browser/resources/settings/site_settings/site_list.js File ...
5 years, 1 month ago (2015-10-29 19:41:58 UTC) #43
Dan Beam
I don't understand why we'd make @polymerBehaviors full of @private methods. these should probably be ...
5 years, 1 month ago (2015-10-29 21:10:39 UTC) #44
Finnur
Addressed comments from both Dan and Michael. PTAL. https://codereview.chromium.org/1372053002/diff/280001/chrome/browser/resources/settings/site_settings/site_list.js File chrome/browser/resources/settings/site_settings/site_list.js (right): https://codereview.chromium.org/1372053002/diff/280001/chrome/browser/resources/settings/site_settings/site_list.js#newcode214 chrome/browser/resources/settings/site_settings/site_list.js:214: return ...
5 years, 1 month ago (2015-10-30 12:13:47 UTC) #45
Dan Beam
lgtm I may have more nits in the future but let's land this puppy, it's ...
5 years, 1 month ago (2015-10-30 20:23:54 UTC) #46
Finnur
Thanks for the feedback. https://codereview.chromium.org/1372053002/diff/290001/chrome/browser/resources/settings/site_settings/site_list.html File chrome/browser/resources/settings/site_settings/site_list.html (right): https://codereview.chromium.org/1372053002/diff/290001/chrome/browser/resources/settings/site_settings/site_list.html#newcode29 chrome/browser/resources/settings/site_settings/site_list.html:29: <template is="dom-repeat" items="{{sites_}}"> Ah. OK. ...
5 years, 1 month ago (2015-11-02 10:43:48 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1372053002/330001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1372053002/330001
5 years, 1 month ago (2015-11-02 10:44:20 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clobber_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_clobber_rel_ng/builds/88781) linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 1 month ago (2015-11-02 10:46:58 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1372053002/390001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1372053002/390001
5 years, 1 month ago (2015-11-02 13:06:25 UTC) #55
commit-bot: I haz the power
Committed patchset #19 (id:390001)
5 years, 1 month ago (2015-11-02 13:40:38 UTC) #56
commit-bot: I haz the power
Patchset 19 (id:??) landed as https://crrev.com/1c386ff87977f702a5260314ff78dab1143304d5 Cr-Commit-Position: refs/heads/master@{#357346}
5 years, 1 month ago (2015-11-02 13:41:30 UTC) #57
michaelpg
https://codereview.chromium.org/1372053002/diff/390001/chrome/browser/resources/settings/advanced_page/advanced_page.html File chrome/browser/resources/settings/advanced_page/advanced_page.html (right): https://codereview.chromium.org/1372053002/diff/390001/chrome/browser/resources/settings/advanced_page/advanced_page.html#newcode30 chrome/browser/resources/settings/advanced_page/advanced_page.html:30: </cr-settings-section> wrong closing tag -- now everything is a ...
5 years, 1 month ago (2015-11-02 23:25:56 UTC) #58
dpapad
https://codereview.chromium.org/1372053002/diff/390001/chrome/browser/resources/settings/advanced_page/advanced_page.html File chrome/browser/resources/settings/advanced_page/advanced_page.html (right): https://codereview.chromium.org/1372053002/diff/390001/chrome/browser/resources/settings/advanced_page/advanced_page.html#newcode30 chrome/browser/resources/settings/advanced_page/advanced_page.html:30: </cr-settings-section> On 2015/11/02 23:25:56, michaelpg wrote: > wrong closing ...
5 years, 1 month ago (2015-11-04 01:58:43 UTC) #59
michaelpg
5 years, 1 month ago (2015-11-04 02:06:11 UTC) #60
Message was sent while issue was closed.
https://codereview.chromium.org/1372053002/diff/390001/chrome/browser/resourc...
File chrome/browser/resources/settings/advanced_page/advanced_page.html (right):

https://codereview.chromium.org/1372053002/diff/390001/chrome/browser/resourc...
chrome/browser/resources/settings/advanced_page/advanced_page.html:30:
</cr-settings-section>
On 2015/11/04 01:58:43, dpapad wrote:
> On 2015/11/02 23:25:56, michaelpg wrote:
> > wrong closing tag -- now everything is a child of this section :-)
> 
> Good find. BTW, this broke the paper-dialog rendering in
> reset-page/reset-page.html.

to be fixed with https://codereview.chromium.org/1415693011

Powered by Google App Engine
This is Rietveld 408576698