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

Issue 1536593004: Settings People Revamp: Implement Chrome Profile name/icon selection. (Closed)

Created:
5 years ago by tommycli
Modified:
4 years, 11 months ago
Reviewers:
dschuyler, Dan Beam
CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+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

Settings People Revamp: Implement Chrome Profile name/icon selection. 1) Decouple the profile icon and name updates from the SyncStatus struct. They are now updated separately. See SyncPrivateApi.getProfileInfo. 2) Updates PeopleHandler to send new profile icon and name updates in response to these changing. 3) Copies a subset of options::ManageProfileHandler to settings::ManageProfileHandler. The parts left behind are functionality that will be subsumed by the new native User Manager. 4) Implements new functions necessary for manage_profile.html page in SyncPrivateApi. 5) Adds a manage_profile.html subpage that allows Chrome users to switch their name and icon. BUG=563721 Committed: https://crrev.com/9cb23370b8d9d2f0bdaed145e5682ac862c424e1 Cr-Commit-Position: refs/heads/master@{#368181}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : fix gn build #

Total comments: 26

Patch Set 9 : #

Total comments: 14

Patch Set 10 : rebase #

Total comments: 10

Patch Set 11 : #

Total comments: 10

Patch Set 12 : #

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+432 lines, -475 lines) Patch
M chrome/app/settings_strings.grdp View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/people_page/compiled_resources.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +14 lines, -0 lines 0 comments Download
A + chrome/browser/resources/settings/people_page/manage_profile.css View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -3 lines 0 comments Download
A chrome/browser/resources/settings/people_page/manage_profile.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +26 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/people_page/manage_profile.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +96 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/people_page/people_page.html View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +13 lines, -3 lines 0 comments Download
M chrome/browser/resources/settings/people_page/people_page.js View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +33 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/people_page/sync_private_api.js View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +52 lines, -2 lines 0 comments Download
M chrome/browser/resources/settings/settings_page/compiled_resources.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/settings_page/settings_router.js View 1 2 3 4 5 6 7 8 9 10 3 chunks +17 lines, -3 lines 0 comments Download
M chrome/browser/resources/settings/settings_resources.grd View 1 2 3 1 chunk +13 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 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/settings/md_settings_ui.cc View 1 2 3 4 5 6 7 8 9 3 chunks +12 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/settings/people_handler.h View 1 2 3 4 5 6 7 8 9 4 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/settings/people_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +30 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/settings/people_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 15 chunks +29 lines, -20 lines 0 comments Download
A + chrome/browser/ui/webui/settings/settings_manage_profile_handler.h View 1 2 3 4 5 6 7 8 9 4 chunks +18 lines, -72 lines 0 comments Download
A + chrome/browser/ui/webui/settings/settings_manage_profile_handler.cc View 1 2 3 4 5 6 7 8 9 13 chunks +40 lines, -360 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (8 generated)
tommycli
dschuyler: PTAL. This is a fat patch. It implements the Profile Icon and Name selection ...
5 years ago (2015-12-22 00:54:43 UTC) #4
dschuyler
I need to go over this CL again, but here's a first pass with some ...
5 years ago (2015-12-22 18:47:48 UTC) #5
tommycli
dschuyler: Thanks! see below https://codereview.chromium.org/1536593004/diff/140001/chrome/browser/resources/settings/people_page/manage_profile.html File chrome/browser/resources/settings/people_page/manage_profile.html (right): https://codereview.chromium.org/1536593004/diff/140001/chrome/browser/resources/settings/people_page/manage_profile.html#newcode16 chrome/browser/resources/settings/people_page/manage_profile.html:16: <template is="dom-repeat" items="{{availableIconUrls}}"> On 2015/12/22 ...
5 years ago (2015-12-22 21:58:33 UTC) #6
Dan Beam
https://codereview.chromium.org/1536593004/diff/160001/chrome/browser/resources/settings/people_page/manage_profile.js File chrome/browser/resources/settings/people_page/manage_profile.js (right): https://codereview.chromium.org/1536593004/diff/160001/chrome/browser/resources/settings/people_page/manage_profile.js#newcode71 chrome/browser/resources/settings/people_page/manage_profile.js:71: element.dataset.iconUrl; why if something else is tapped without a ...
4 years, 11 months ago (2015-12-28 23:28:57 UTC) #8
tommycli
dbeam: thanks! see below https://codereview.chromium.org/1536593004/diff/160001/chrome/browser/resources/settings/people_page/manage_profile.js File chrome/browser/resources/settings/people_page/manage_profile.js (right): https://codereview.chromium.org/1536593004/diff/160001/chrome/browser/resources/settings/people_page/manage_profile.js#newcode71 chrome/browser/resources/settings/people_page/manage_profile.js:71: element.dataset.iconUrl; On 2015/12/28 23:28:57, Dan ...
4 years, 11 months ago (2016-01-04 21:40:13 UTC) #9
Dan Beam
looks pretty good to me https://codereview.chromium.org/1536593004/diff/180001/chrome/browser/resources/settings/people_page/manage_profile.js File chrome/browser/resources/settings/people_page/manage_profile.js (right): https://codereview.chromium.org/1536593004/diff/180001/chrome/browser/resources/settings/people_page/manage_profile.js#newcode66 chrome/browser/resources/settings/people_page/manage_profile.js:66: * @return {boolean} remove ...
4 years, 11 months ago (2016-01-04 22:06:11 UTC) #10
dschuyler
https://codereview.chromium.org/1536593004/diff/180001/chrome/browser/ui/webui/settings/settings_manage_profile_handler.h File chrome/browser/ui/webui/settings/settings_manage_profile_handler.h (right): https://codereview.chromium.org/1536593004/diff/180001/chrome/browser/ui/webui/settings/settings_manage_profile_handler.h#newcode84 chrome/browser/ui/webui/settings/settings_manage_profile_handler.h:84: Profile* profile_; Can the ManageProfileHandler outlive the profile_?
4 years, 11 months ago (2016-01-05 01:16:12 UTC) #11
tommycli
dschuyler: thanks!! https://codereview.chromium.org/1536593004/diff/180001/chrome/browser/ui/webui/settings/settings_manage_profile_handler.h File chrome/browser/ui/webui/settings/settings_manage_profile_handler.h (right): https://codereview.chromium.org/1536593004/diff/180001/chrome/browser/ui/webui/settings/settings_manage_profile_handler.h#newcode84 chrome/browser/ui/webui/settings/settings_manage_profile_handler.h:84: Profile* profile_; On 2016/01/05 01:16:12, dschuyler wrote: ...
4 years, 11 months ago (2016-01-05 01:23:51 UTC) #12
dschuyler
lgtm
4 years, 11 months ago (2016-01-05 01:53:37 UTC) #13
tommycli
dbeam: ping, thanks!
4 years, 11 months ago (2016-01-05 22:13:46 UTC) #14
tommycli
dbeam: oops missed a few comments from last go-around. Should be complete now. Latest patchset ...
4 years, 11 months ago (2016-01-06 20:30:05 UTC) #15
Dan Beam
https://codereview.chromium.org/1536593004/diff/180001/chrome/browser/resources/settings/people_page/manage_profile.css File chrome/browser/resources/settings/people_page/manage_profile.css (right): https://codereview.chromium.org/1536593004/diff/180001/chrome/browser/resources/settings/people_page/manage_profile.css#newcode10 chrome/browser/resources/settings/people_page/manage_profile.css:10: margin: 16px 0 0 16px; RTL https://codereview.chromium.org/1536593004/diff/200001/chrome/browser/resources/settings/people_page/manage_profile.js File chrome/browser/resources/settings/people_page/manage_profile.js ...
4 years, 11 months ago (2016-01-07 02:41:20 UTC) #16
tommycli
dbeam: Address rest of comments here. Per offline discussion, sending to CQ. https://codereview.chromium.org/1536593004/diff/180001/chrome/browser/resources/settings/people_page/manage_profile.css File chrome/browser/resources/settings/people_page/manage_profile.css ...
4 years, 11 months ago (2016-01-07 22:08:23 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1536593004/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1536593004/240001
4 years, 11 months ago (2016-01-07 22:09:13 UTC) #20
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 11 months ago (2016-01-07 22:56:15 UTC) #22
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/9cb23370b8d9d2f0bdaed145e5682ac862c424e1 Cr-Commit-Position: refs/heads/master@{#368181}
4 years, 11 months ago (2016-01-07 22:57:08 UTC) #24
Ɓukasz Anforowicz
4 years, 11 months ago (2016-01-07 23:18:05 UTC) #25
Message was sent while issue was closed.
A revert of this CL (patchset #13 id:240001) has been created in
https://codereview.chromium.org/1568963003/ by lukasza@chromium.org.

The reason for reverting is: This is the main suspect for causing a build
failure below:

https://build.chromium.org/p/chromium.fyi/builders/Closure%20Compilation%20Li....

Powered by Google App Engine
This is Rietveld 408576698