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

Issue 733613005: Move the notification part out of ConsumerEnrollmentHandler so that it can be reused for unenrollme… (Closed)

Created:
6 years, 1 month ago by davidyu
Modified:
6 years ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@enroll
Project:
chromium
Visibility:
Public.

Description

Move the notification part out of ConsumerEnrollmentHandler so that it can be reused for unenrollment as well. ConsumerManagementNotification is always created for owner profiles even when there is no pending notification to show, because enrollment or unenrollment may happen after the owner signs in. BUG=chromium:353050 TEST=unit_tests Committed: https://crrev.com/fcbf1a950801608326e710c50f4427b9da5fac9c Cr-Commit-Position: refs/heads/master@{#304998}

Patch Set 1 #

Total comments: 12

Patch Set 2 : #

Patch Set 3 : Added a check for UserManager. #

Total comments: 40
Unified diffs Side-by-side diffs Delta from patch set Stats (+530 lines, -306 lines) Patch
M chrome/browser/chromeos/policy/consumer_enrollment_handler.h View 2 chunks +1 line, -14 lines 0 comments Download
M chrome/browser/chromeos/policy/consumer_enrollment_handler.cc View 4 chunks +1 line, -166 lines 4 comments Download
M chrome/browser/chromeos/policy/consumer_enrollment_handler_factory.h View 1 chunk +0 lines, -3 lines 2 comments Download
M chrome/browser/chromeos/policy/consumer_enrollment_handler_factory.cc View 1 2 2 chunks +16 lines, -22 lines 0 comments Download
M chrome/browser/chromeos/policy/consumer_enrollment_handler_factory_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/policy/consumer_enrollment_handler_unittest.cc View 4 chunks +29 lines, -58 lines 0 comments Download
A chrome/browser/chromeos/policy/consumer_management_notifier.h View 1 1 chunk +55 lines, -0 lines 6 comments Download
A chrome/browser/chromeos/policy/consumer_management_notifier.cc View 1 1 chunk +172 lines, -0 lines 18 comments Download
A chrome/browser/chromeos/policy/consumer_management_notifier_factory.h View 1 1 chunk +44 lines, -0 lines 4 comments Download
A chrome/browser/chromeos/policy/consumer_management_notifier_factory.cc View 1 2 1 chunk +67 lines, -0 lines 0 comments Download
A + chrome/browser/chromeos/policy/consumer_management_notifier_factory_unittest.cc View 1 3 chunks +14 lines, -20 lines 2 comments Download
A chrome/browser/chromeos/policy/consumer_management_notifier_unittest.cc View 1 1 chunk +101 lines, -0 lines 4 comments Download
M chrome/browser/chromeos/policy/consumer_management_service.h View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/consumer_management_service.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/policy/fake_consumer_management_service.h View 1 chunk +3 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/policy/fake_consumer_management_service.cc View 2 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (5 generated)
davidyu
6 years, 1 month ago (2014-11-15 06:16:46 UTC) #2
Mattias Nissler (ping if slow)
LGTM, happy to make another sanity pass in case you do change the naming. https://codereview.chromium.org/733613005/diff/1/chrome/browser/chromeos/policy/consumer_enrollment_handler_factory.cc ...
6 years, 1 month ago (2014-11-18 10:02:27 UTC) #3
davidyu
I renamed the class to ConsumerManagementNotifier, which is shorter. https://codereview.chromium.org/733613005/diff/1/chrome/browser/chromeos/policy/consumer_enrollment_handler_factory.cc File chrome/browser/chromeos/policy/consumer_enrollment_handler_factory.cc (right): https://codereview.chromium.org/733613005/diff/1/chrome/browser/chromeos/policy/consumer_enrollment_handler_factory.cc#newcode60 chrome/browser/chromeos/policy/consumer_enrollment_handler_factory.cc:60: ...
6 years, 1 month ago (2014-11-19 02:54:21 UTC) #4
davidyu
Hi Stefan, can you help reviewing chrome_browser_main_extra_parts_profiles.cc? Thanks!
6 years, 1 month ago (2014-11-19 02:56:14 UTC) #6
Mattias Nissler (ping if slow)
LGTM
6 years, 1 month ago (2014-11-19 08:05:10 UTC) #7
Mr4D (OOO till 08-26)
chrome_browser_main_extra_parts_profiles lgtm [Even though I have to say that the function EnsureBrowserContextKeyedServiceFactoriesBuilt() in general should ...
6 years, 1 month ago (2014-11-19 16:33:23 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/733613005/20001
6 years, 1 month ago (2014-11-20 01:56:38 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/971)
6 years, 1 month ago (2014-11-20 04:28:35 UTC) #12
davidyu
On 2014/11/20 04:28:35, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 1 month ago (2014-11-20 05:07:07 UTC) #13
davidyu
On 2014/11/20 05:07:07, davidyu wrote: > On 2014/11/20 04:28:35, I haz the power (commit-bot) wrote: ...
6 years, 1 month ago (2014-11-20 05:08:53 UTC) #14
Mattias Nissler (ping if slow)
Still LGTM, although it worries me that our testing code is still so b0rked.
6 years, 1 month ago (2014-11-20 08:29:37 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/733613005/40001
6 years, 1 month ago (2014-11-20 08:56:39 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years, 1 month ago (2014-11-20 10:20:11 UTC) #18
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/fcbf1a950801608326e710c50f4427b9da5fac9c Cr-Commit-Position: refs/heads/master@{#304998}
6 years, 1 month ago (2014-11-20 10:21:12 UTC) #19
bartfab (slow)
Belated LGTM with a few nits. https://codereview.chromium.org/733613005/diff/40001/chrome/browser/chromeos/policy/consumer_enrollment_handler.cc File chrome/browser/chromeos/policy/consumer_enrollment_handler.cc (right): https://codereview.chromium.org/733613005/diff/40001/chrome/browser/chromeos/policy/consumer_enrollment_handler.cc#newcode11 chrome/browser/chromeos/policy/consumer_enrollment_handler.cc:11: #include "base/time/time.h" Nit: ...
6 years ago (2014-11-27 14:09:10 UTC) #20
davidyu
Fixed in https://codereview.chromium.org/760373002/ https://codereview.chromium.org/733613005/diff/40001/chrome/browser/chromeos/policy/consumer_enrollment_handler.cc File chrome/browser/chromeos/policy/consumer_enrollment_handler.cc (right): https://codereview.chromium.org/733613005/diff/40001/chrome/browser/chromeos/policy/consumer_enrollment_handler.cc#newcode11 chrome/browser/chromeos/policy/consumer_enrollment_handler.cc:11: #include "base/time/time.h" On 2014/11/27 14:09:09, bartfab ...
6 years ago (2014-11-28 02:45:26 UTC) #21
bartfab (slow)
https://codereview.chromium.org/733613005/diff/40001/chrome/browser/chromeos/policy/consumer_enrollment_handler.cc File chrome/browser/chromeos/policy/consumer_enrollment_handler.cc (right): https://codereview.chromium.org/733613005/diff/40001/chrome/browser/chromeos/policy/consumer_enrollment_handler.cc#newcode11 chrome/browser/chromeos/policy/consumer_enrollment_handler.cc:11: #include "base/time/time.h" On 2014/11/28 02:45:25, davidyu wrote: > On ...
6 years ago (2014-11-28 14:52:14 UTC) #22
davidyu
6 years ago (2014-11-30 04:16:04 UTC) #23
Message was sent while issue was closed.
https://codereview.chromium.org/733613005/diff/40001/chrome/browser/chromeos/...
File chrome/browser/chromeos/policy/consumer_enrollment_handler.cc (right):

https://codereview.chromium.org/733613005/diff/40001/chrome/browser/chromeos/...
chrome/browser/chromeos/policy/consumer_enrollment_handler.cc:11: #include
"base/time/time.h"
On 2014/11/28 14:52:14, bartfab wrote:
> On 2014/11/28 02:45:25, davidyu wrote:
> > On 2014/11/27 14:09:09, bartfab wrote:
> > > Nit: No longer used.
> > 
> > This is used by the parameter of OnGetTokenSuccess().
> 
> You never dereference that type though. But sure, if the compiler complains
> without the include, so be it.

Ok. I'll fix it in another CL.

Powered by Google App Engine
This is Rietveld 408576698