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

Issue 1078713002: Supervised users: Re-check ManagementPolicy when ProfileIsSupervised changes. (Closed)

Created:
5 years, 8 months ago by Marc Treib
Modified:
5 years, 8 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, pam+watch_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Supervised users: Re-check ManagementPolicy when ProfileIsSupervised changes. Add a test to make sure this happens, and while we're here, clean up some other supervised users+extensions tests. Also, yak shaving: Rebuild the avatar menu when a profile's "IsOmitted" state changes. BUG=397951 Committed: https://crrev.com/9e30e307e27f6ce8bfa373a29a19ac4fad431925 Cr-Commit-Position: refs/heads/master@{#325208}

Patch Set 1 #

Total comments: 2

Patch Set 2 : review #

Total comments: 2

Patch Set 3 : kalman review #

Patch Set 4 : fix Mac test #

Patch Set 5 : shaving the yak #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -12 lines) Patch
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 6 chunks +48 lines, -3 lines 0 comments Download
M chrome/browser/profiles/avatar_menu.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/profiles/avatar_menu.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_info_cache.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_info_cache_observer.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_service.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_service.cc View 1 2 3 4 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_menu_controller_unittest.mm View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 3 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 25 (8 generated)
Marc Treib
PTAL!
5 years, 8 months ago (2015-04-09 12:10:51 UTC) #2
Bernhard Bauer
https://codereview.chromium.org/1078713002/diff/1/chrome/test/base/testing_profile.cc File chrome/test/base/testing_profile.cc (right): https://codereview.chromium.org/1078713002/diff/1/chrome/test/base/testing_profile.cc#newcode770 chrome/test/base/testing_profile.cc:770: supervised_user_id_ = id; You could change the pref from ...
5 years, 8 months ago (2015-04-09 12:15:05 UTC) #3
Marc Treib
https://codereview.chromium.org/1078713002/diff/1/chrome/test/base/testing_profile.cc File chrome/test/base/testing_profile.cc (right): https://codereview.chromium.org/1078713002/diff/1/chrome/test/base/testing_profile.cc#newcode770 chrome/test/base/testing_profile.cc:770: supervised_user_id_ = id; On 2015/04/09 12:15:05, Bernhard Bauer wrote: ...
5 years, 8 months ago (2015-04-09 12:37:27 UTC) #4
Bernhard Bauer
LGTM (meant to say that before)
5 years, 8 months ago (2015-04-09 12:39:38 UTC) #5
Marc Treib
+kalman for extension_service_unittest.cc +jcivelli for testing_profile.h/cc Can I get OWNERS approval, please? Thanks!
5 years, 8 months ago (2015-04-09 12:42:11 UTC) #7
not at google - send to devlin
lgtm https://codereview.chromium.org/1078713002/diff/20001/chrome/browser/extensions/extension_service_unittest.cc File chrome/browser/extensions/extension_service_unittest.cc (right): https://codereview.chromium.org/1078713002/diff/20001/chrome/browser/extensions/extension_service_unittest.cc#newcode6633 chrome/browser/extensions/extension_service_unittest.cc:6633: class StubSupervisedUserServiceDelegate Perhaps ScopedSupervisedUserServiceDelegate would be a more ...
5 years, 8 months ago (2015-04-09 14:58:52 UTC) #8
Marc Treib
https://codereview.chromium.org/1078713002/diff/20001/chrome/browser/extensions/extension_service_unittest.cc File chrome/browser/extensions/extension_service_unittest.cc (right): https://codereview.chromium.org/1078713002/diff/20001/chrome/browser/extensions/extension_service_unittest.cc#newcode6633 chrome/browser/extensions/extension_service_unittest.cc:6633: class StubSupervisedUserServiceDelegate On 2015/04/09 14:58:52, kalman wrote: > Perhaps ...
5 years, 8 months ago (2015-04-09 15:07:49 UTC) #9
Jay Civelli
LGTM for chrome/test/base
5 years, 8 months ago (2015-04-13 16:38:23 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1078713002/40001
5 years, 8 months ago (2015-04-13 16:39:29 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/54844)
5 years, 8 months ago (2015-04-13 19:21:24 UTC) #15
Marc Treib
Adding OWNERS for the yak shaving part. shess: Please look at profile_menu_controller_unittest.mm mlerman: Please look ...
5 years, 8 months ago (2015-04-14 13:30:45 UTC) #17
Mike Lerman
LGTM for profiles.
5 years, 8 months ago (2015-04-14 13:44:40 UTC) #18
Scott Hess - ex-Googler
LGTM for Cocoa! [Insert picture of "I don't know what I'm doing" dog here.]
5 years, 8 months ago (2015-04-14 20:35:48 UTC) #19
Marc Treib
Yay! Thanks, everyone!
5 years, 8 months ago (2015-04-15 08:07:19 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1078713002/80001
5 years, 8 months ago (2015-04-15 08:07:32 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 8 months ago (2015-04-15 08:12:32 UTC) #24
commit-bot: I haz the power
5 years, 8 months ago (2015-04-15 08:13:17 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/9e30e307e27f6ce8bfa373a29a19ac4fad431925
Cr-Commit-Position: refs/heads/master@{#325208}

Powered by Google App Engine
This is Rietveld 408576698