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

Issue 18337013: Update ManagedUserService tests to create the service using ManagedUserServiceFactory (Closed)

Created:
7 years, 5 months ago by ibraaaa
Modified:
7 years, 5 months ago
Reviewers:
Bernhard Bauer, Sergiu
CC:
chromium-reviews, pam+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Update ManagedUserService tests to create the service using ManagedUserServiceFactory Using ManagedUserServiceFactory to create the service instead of directly constructing the service allow for correct shutdown (Shutdown method to be called) To prevent this from happening again we: 1- We DCHECK that Shutdown method is called before destruction of ManagedUserService 2- We make the constructor of ManagedUserService accessible only to ManagedUserServiceFactory BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210677

Patch Set 1 #

Patch Set 2 : bauerb@ #

Total comments: 4

Patch Set 3 : bauerb@... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -31 lines) Patch
M chrome/browser/managed_mode/managed_user_service.h View 1 2 4 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/managed_mode/managed_user_service.cc View 1 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/managed_mode/managed_user_service_unittest.cc View 4 chunks +33 lines, -28 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
ibraaaa
7 years, 5 months ago (2013-07-09 12:47:53 UTC) #1
Bernhard Bauer
Please add a BUG=. It would probably be a good idea to add some check ...
7 years, 5 months ago (2013-07-09 12:53:07 UTC) #2
ibraaaa
On 2013/07/09 12:53:07, Bernhard Bauer wrote: > Please add a BUG=. > > It would ...
7 years, 5 months ago (2013-07-09 13:34:21 UTC) #3
Bernhard Bauer
https://codereview.chromium.org/18337013/diff/4001/chrome/browser/managed_mode/managed_user_service.h File chrome/browser/managed_mode/managed_user_service.h (right): https://codereview.chromium.org/18337013/diff/4001/chrome/browser/managed_mode/managed_user_service.h#newcode192 chrome/browser/managed_mode/managed_user_service.h:192: explicit ManagedUserService(Profile* profile); Can you add a comment that ...
7 years, 5 months ago (2013-07-09 14:19:40 UTC) #4
ibraaaa
https://codereview.chromium.org/18337013/diff/4001/chrome/browser/managed_mode/managed_user_service.h File chrome/browser/managed_mode/managed_user_service.h (right): https://codereview.chromium.org/18337013/diff/4001/chrome/browser/managed_mode/managed_user_service.h#newcode192 chrome/browser/managed_mode/managed_user_service.h:192: explicit ManagedUserService(Profile* profile); On 2013/07/09 14:19:40, Bernhard Bauer wrote: ...
7 years, 5 months ago (2013-07-09 14:28:34 UTC) #5
Bernhard Bauer
lgtm
7 years, 5 months ago (2013-07-09 14:32:41 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ibraaaa@google.com/18337013/9001
7 years, 5 months ago (2013-07-09 14:43:42 UTC) #7
commit-bot: I haz the power
7 years, 5 months ago (2013-07-10 00:03:43 UTC) #8
Message was sent while issue was closed.
Change committed as 210677

Powered by Google App Engine
This is Rietveld 408576698