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

Issue 597783003: Update the AvatarMenu when a supervised user's custodian info changes. (Closed)

Created:
6 years, 2 months ago by Marc Treib
Modified:
6 years, 2 months ago
CC:
chromium-reviews, pam+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Update the AvatarMenu (and the ProfileChooserView, which listens for changes to the AvatarMenu) when a supervised user's custodian info changes. BUG=372381 Committed: https://crrev.com/3fce4e99a7b91b6ff5ea1036c4984f97e373ab76 Cr-Commit-Position: refs/heads/master@{#296954}

Patch Set 1 #

Patch Set 2 : fix non-ENABLE_MANAGED_USERS #

Total comments: 5

Patch Set 3 : ScopedObserver #

Total comments: 8

Patch Set 4 : review comments #

Patch Set 5 : fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -11 lines) Patch
M chrome/browser/profiles/avatar_menu.h View 1 2 3 3 chunks +23 lines, -2 lines 0 comments Download
M chrome/browser/profiles/avatar_menu.cc View 1 2 3 3 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_list_desktop_browsertest.cc View 1 2 3 4 3 chunks +4 lines, -9 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_service.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_service.cc View 1 2 3 4 2 chunks +30 lines, -0 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_service_observer.h View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (2 generated)
Marc Treib
PTAL! noms@chromium.org: Please review changes in c/b/profiles. bauerb@chromium.org: Please review changes in c/b/supervised_user.
6 years, 2 months ago (2014-09-25 11:06:33 UTC) #2
noms (inactive)
https://codereview.chromium.org/597783003/diff/20001/chrome/browser/profiles/avatar_menu.cc File chrome/browser/profiles/avatar_menu.cc (right): https://codereview.chromium.org/597783003/diff/20001/chrome/browser/profiles/avatar_menu.cc#newcode73 chrome/browser/profiles/avatar_menu.cc:73: SupervisedUserServiceFactory::GetForProfile(browser_->profile()); Is it possible to be in a state ...
6 years, 2 months ago (2014-09-25 14:22:23 UTC) #3
Marc Treib
https://codereview.chromium.org/597783003/diff/20001/chrome/browser/profiles/avatar_menu.cc File chrome/browser/profiles/avatar_menu.cc (right): https://codereview.chromium.org/597783003/diff/20001/chrome/browser/profiles/avatar_menu.cc#newcode73 chrome/browser/profiles/avatar_menu.cc:73: SupervisedUserServiceFactory::GetForProfile(browser_->profile()); On 2014/09/25 14:22:22, Monica Dinculescu wrote: > Is ...
6 years, 2 months ago (2014-09-25 14:50:56 UTC) #4
Bernhard Bauer
supervised_user/ LGTM. https://codereview.chromium.org/597783003/diff/20001/chrome/browser/profiles/avatar_menu.cc File chrome/browser/profiles/avatar_menu.cc (right): https://codereview.chromium.org/597783003/diff/20001/chrome/browser/profiles/avatar_menu.cc#newcode73 chrome/browser/profiles/avatar_menu.cc:73: SupervisedUserServiceFactory::GetForProfile(browser_->profile()); On 2014/09/25 14:50:56, Marc Treib wrote: ...
6 years, 2 months ago (2014-09-25 15:15:48 UTC) #5
Marc Treib
https://codereview.chromium.org/597783003/diff/20001/chrome/browser/profiles/avatar_menu.cc File chrome/browser/profiles/avatar_menu.cc (right): https://codereview.chromium.org/597783003/diff/20001/chrome/browser/profiles/avatar_menu.cc#newcode84 chrome/browser/profiles/avatar_menu.cc:84: service->RemoveObserver(this); On 2014/09/25 15:15:48, Bernhard Bauer wrote: > A ...
6 years, 2 months ago (2014-09-25 15:30:28 UTC) #6
noms (inactive)
profiles lgtm
6 years, 2 months ago (2014-09-25 15:36:18 UTC) #7
Bernhard Bauer
https://codereview.chromium.org/597783003/diff/40001/chrome/browser/profiles/avatar_menu.cc File chrome/browser/profiles/avatar_menu.cc (right): https://codereview.chromium.org/597783003/diff/40001/chrome/browser/profiles/avatar_menu.cc#newcode77 chrome/browser/profiles/avatar_menu.cc:77: supervised_user_observer_.Add(service); You could even inline |service| now? https://codereview.chromium.org/597783003/diff/40001/chrome/browser/profiles/avatar_menu.h File ...
6 years, 2 months ago (2014-09-25 16:11:20 UTC) #8
Marc Treib
https://codereview.chromium.org/597783003/diff/40001/chrome/browser/profiles/avatar_menu.cc File chrome/browser/profiles/avatar_menu.cc (right): https://codereview.chromium.org/597783003/diff/40001/chrome/browser/profiles/avatar_menu.cc#newcode77 chrome/browser/profiles/avatar_menu.cc:77: supervised_user_observer_.Add(service); On 2014/09/25 16:11:19, Bernhard Bauer wrote: > You ...
6 years, 2 months ago (2014-09-25 16:17:17 UTC) #9
Marc Treib
Ping@noms, in case you want to take another look: I had to update ProfileListDesktopBrowserTest so ...
6 years, 2 months ago (2014-09-26 09:28:19 UTC) #10
noms (inactive)
slgtm
6 years, 2 months ago (2014-09-26 14:19:02 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/597783003/80001
6 years, 2 months ago (2014-09-26 14:59:55 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001) as 7a04a7c0a7421cb93f42dc3d88bf614d9371b292
6 years, 2 months ago (2014-09-26 16:06:33 UTC) #14
commit-bot: I haz the power
6 years, 2 months ago (2014-09-26 16:07:10 UTC) #15
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/3fce4e99a7b91b6ff5ea1036c4984f97e373ab76
Cr-Commit-Position: refs/heads/master@{#296954}

Powered by Google App Engine
This is Rietveld 408576698