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

Issue 2942373002: Extract AD policy scheduler into separate class (Closed)

Created:
3 years, 6 months ago by Thiemo Nagel
Modified:
3 years, 6 months ago
Reviewers:
pmarko
CC:
chromium-reviews, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Extract AD policy scheduler into separate class The new code should be easier to test, easier to extend and easier to re-use. BUG=734776 TEST=added unittests for scheduler Review-Url: https://codereview.chromium.org/2942373002 Cr-Commit-Position: refs/heads/master@{#481237} Committed: https://chromium.googlesource.com/chromium/src/+/dd04f963fac90b8d3502d8e96340b07be463b760

Patch Set 1 #

Total comments: 21

Patch Set 2 : Various improvements #

Patch Set 3 : Fix comment #

Patch Set 4 : Simplify public interface (and implementation) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+339 lines, -96 lines) Patch
M chrome/browser/chromeos/policy/active_directory_policy_manager.h View 2 chunks +8 lines, -24 lines 0 comments Download
M chrome/browser/chromeos/policy/active_directory_policy_manager.cc View 1 2 3 7 chunks +21 lines, -71 lines 0 comments Download
M components/policy/core/common/BUILD.gn View 1 3 chunks +7 lines, -1 line 0 comments Download
A components/policy/core/common/policy_scheduler.h View 1 2 3 1 chunk +95 lines, -0 lines 0 comments Download
A components/policy/core/common/policy_scheduler.cc View 1 2 3 1 chunk +74 lines, -0 lines 0 comments Download
A components/policy/core/common/policy_scheduler_unittest.cc View 1 2 3 1 chunk +134 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (24 generated)
Thiemo Nagel
Hey Pavol, could you maybe take a look at this CL? (There are still some ...
3 years, 6 months ago (2017-06-19 08:41:58 UTC) #9
pmarko
Hi Thiemo, happy to do the review! A general question: Do we plan on keeping ...
3 years, 6 months ago (2017-06-19 10:14:38 UTC) #10
Thiemo Nagel
PTAL. > happy to do the review! Many thanks! > A general question: Do we ...
3 years, 6 months ago (2017-06-19 22:29:51 UTC) #14
Thiemo Nagel
https://codereview.chromium.org/2942373002/diff/60001/components/policy/core/common/policy_scheduler.h File components/policy/core/common/policy_scheduler.h (right): https://codereview.chromium.org/2942373002/diff/60001/components/policy/core/common/policy_scheduler.h#newcode51 components/policy/core/common/policy_scheduler.h:51: void ScheduleTask(base::TimeDelta delay); > Actually, it doesn't. I've clarified ...
3 years, 6 months ago (2017-06-19 22:50:04 UTC) #17
pmarko
Sorry for the delay! https://codereview.chromium.org/2942373002/diff/60001/chrome/browser/chromeos/policy/active_directory_policy_manager.h File chrome/browser/chromeos/policy/active_directory_policy_manager.h (right): https://codereview.chromium.org/2942373002/diff/60001/chrome/browser/chromeos/policy/active_directory_policy_manager.h#newcode61 chrome/browser/chromeos/policy/active_directory_policy_manager.h:61: void DoRefresh(PolicyScheduler::TaskCallback callback); On 2017/06/19 ...
3 years, 6 months ago (2017-06-20 20:01:05 UTC) #20
Thiemo Nagel
Thanks a lot! Could you please take another look? https://codereview.chromium.org/2942373002/diff/60001/components/policy/core/common/policy_scheduler.h File components/policy/core/common/policy_scheduler.h (right): https://codereview.chromium.org/2942373002/diff/60001/components/policy/core/common/policy_scheduler.h#newcode51 components/policy/core/common/policy_scheduler.h:51: ...
3 years, 6 months ago (2017-06-21 07:05:31 UTC) #23
pmarko
LGTM Thanks for your patience :) https://codereview.chromium.org/2942373002/diff/60001/components/policy/core/common/policy_scheduler.h File components/policy/core/common/policy_scheduler.h (right): https://codereview.chromium.org/2942373002/diff/60001/components/policy/core/common/policy_scheduler.h#newcode51 components/policy/core/common/policy_scheduler.h:51: void ScheduleTask(base::TimeDelta delay); ...
3 years, 6 months ago (2017-06-21 08:04:54 UTC) #24
Thiemo Nagel
On 2017/06/21 08:04:54, pmarko wrote: > LGTM > > Thanks for your patience :) Many ...
3 years, 6 months ago (2017-06-21 15:30:11 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2942373002/120001
3 years, 6 months ago (2017-06-21 15:30:36 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/472920)
3 years, 6 months ago (2017-06-21 15:59:51 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2942373002/120001
3 years, 6 months ago (2017-06-21 16:17:03 UTC) #33
commit-bot: I haz the power
3 years, 6 months ago (2017-06-21 17:46:43 UTC) #36
Message was sent while issue was closed.
Committed patchset #4 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/dd04f963fac90b8d3502d8e96340...

Powered by Google App Engine
This is Rietveld 408576698