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

Issue 22677002: Notify ThemeService via callback when supervised user is ready. (Closed)

Created:
7 years, 4 months ago by Adrian Kuegel
Modified:
7 years, 4 months ago
CC:
chromium-reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Notify ThemeService via callback when supervised user is ready. We didn't show the supervised user theme when a supervised user was created. This CL fixes this by running a callback when the supervised user profile is fully initialized. This also fixes the bug that the label string was not drawn on Windows. BUG=265387, 269718 TEST=Created a supervised user, added a unit test. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216917

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address review comments. #

Total comments: 2

Patch Set 3 : Fix bugs. #

Total comments: 4

Patch Set 4 : Add unit test. #

Total comments: 12

Patch Set 5 : Rebase to ToT and address nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -2 lines) Patch
M chrome/browser/managed_mode/managed_user_service.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/managed_mode/managed_user_service.cc View 1 2 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/themes/theme_service.h View 1 2 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/themes/theme_service.cc View 1 2 3 4 4 chunks +21 lines, -1 line 0 comments Download
M chrome/browser/themes/theme_service_unittest.cc View 1 2 3 4 3 chunks +29 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/gtk_theme_service.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/gtk_theme_service.cc View 1 2 3 4 3 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Adrian Kuegel
Bernhard, can you please review this CL? Peter, can you please look at my changes ...
7 years, 4 months ago (2013-08-08 11:15:20 UTC) #1
Bernhard Bauer
https://codereview.chromium.org/22677002/diff/1/chrome/browser/managed_mode/managed_user_service.h File chrome/browser/managed_mode/managed_user_service.h (right): https://codereview.chromium.org/22677002/diff/1/chrome/browser/managed_mode/managed_user_service.h#newcode144 chrome/browser/managed_mode/managed_user_service.h:144: void AddManagedUserInitCallback(const base::Closure& callback); Nit: Talking about "managed user" ...
7 years, 4 months ago (2013-08-08 15:12:45 UTC) #2
Adrian Kuegel
https://codereview.chromium.org/22677002/diff/1/chrome/browser/managed_mode/managed_user_service.h File chrome/browser/managed_mode/managed_user_service.h (right): https://codereview.chromium.org/22677002/diff/1/chrome/browser/managed_mode/managed_user_service.h#newcode144 chrome/browser/managed_mode/managed_user_service.h:144: void AddManagedUserInitCallback(const base::Closure& callback); On 2013/08/08 15:12:45, Bernhard Bauer ...
7 years, 4 months ago (2013-08-08 15:26:34 UTC) #3
pkotwicz
I will take a look at this tonight
7 years, 4 months ago (2013-08-08 17:02:28 UTC) #4
pkotwicz
Let's put in a hacky fix for M30 and focus on getting a proper fix ...
7 years, 4 months ago (2013-08-09 05:47:08 UTC) #5
Adrian Kuegel
Peter, you are right, this is a temporary fix for M30. I talked with Bernhard, ...
7 years, 4 months ago (2013-08-09 08:56:12 UTC) #6
pkotwicz
Looks good, can you add a new test which tests that we end up with ...
7 years, 4 months ago (2013-08-09 14:23:02 UTC) #7
Adrian Kuegel
Thanks for the early review :) I added a unit test which simulates the current ...
7 years, 4 months ago (2013-08-09 15:43:01 UTC) #8
Adrian Kuegel
Elliot, can you please approve my changes to gtk_theme_service.*?
7 years, 4 months ago (2013-08-09 15:44:23 UTC) #9
pkotwicz
LGTM https://codereview.chromium.org/22677002/diff/45001/chrome/browser/themes/theme_service.cc File chrome/browser/themes/theme_service.cc (right): https://codereview.chromium.org/22677002/diff/45001/chrome/browser/themes/theme_service.cc#newcode471 chrome/browser/themes/theme_service.cc:471: // before the boolean flag indicating it is ...
7 years, 4 months ago (2013-08-09 16:49:36 UTC) #10
Elliot Glaysher
lgtm
7 years, 4 months ago (2013-08-09 17:33:29 UTC) #11
Bernhard Bauer
lgtm
7 years, 4 months ago (2013-08-09 19:56:26 UTC) #12
Adrian Kuegel
https://codereview.chromium.org/22677002/diff/45001/chrome/browser/themes/theme_service.cc File chrome/browser/themes/theme_service.cc (right): https://codereview.chromium.org/22677002/diff/45001/chrome/browser/themes/theme_service.cc#newcode471 chrome/browser/themes/theme_service.cc:471: // before the boolean flag indicating it is a ...
7 years, 4 months ago (2013-08-09 21:21:59 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akuegel@chromium.org/22677002/40002
7 years, 4 months ago (2013-08-09 21:24:24 UTC) #14
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 4 months ago (2013-08-09 22:05:36 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akuegel@chromium.org/22677002/40002
7 years, 4 months ago (2013-08-10 06:24:12 UTC) #16
commit-bot: I haz the power
Failed to request the patch to try. Please note that binary files are still unsupported ...
7 years, 4 months ago (2013-08-10 15:40:40 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akuegel@chromium.org/22677002/40002
7 years, 4 months ago (2013-08-10 21:14:29 UTC) #18
commit-bot: I haz the power
7 years, 4 months ago (2013-08-12 04:51:17 UTC) #19
Message was sent while issue was closed.
Change committed as 216917

Powered by Google App Engine
This is Rietveld 408576698