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

Issue 2847803008: ProfileSyncService: Handle null SupervisedUserService (Closed)

Created:
3 years, 7 months ago by rishiag
Modified:
3 years, 7 months ago
Reviewers:
Marc Treib, skym
CC:
chromium-reviews, pam+watch_chromium.org, sync-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

ProfileSyncService: Handle null SupervisedUserService SupervisedUserService might be null as profilesyncservice does not depend on it. So handle null service gracefully instead of npe. Since services are created one per profile, this can happen only when browser is exiting. BUG=705545 Review-Url: https://codereview.chromium.org/2847803008 Cr-Commit-Position: refs/heads/master@{#470356} Committed: https://chromium.googlesource.com/chromium/src/+/1c532233baf652b7af9189fb2bce159ae172e739

Patch Set 1 #

Patch Set 2 : Fix lint #

Patch Set 3 : style #

Patch Set 4 : break #

Total comments: 5

Patch Set 5 : add ifexists method; #

Patch Set 6 : add .h file #

Total comments: 2

Patch Set 7 : fix lint #

Patch Set 8 : Merge remote-tracking branch 'refs/remotes/origin/master' into dep #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -9 lines) Patch
M chrome/browser/supervised_user/supervised_user_service_factory.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_service_factory.cc View 1 2 3 4 5 6 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/sync/chrome_sync_client.cc View 1 2 3 4 2 chunks +11 lines, -5 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_factory.cc View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 40 (25 generated)
rishiag1
3 years, 7 months ago (2017-04-28 23:24:42 UTC) #9
sky
I'm not familiar with this code. Could you get a local owner to do the ...
3 years, 7 months ago (2017-05-01 17:07:56 UTC) #13
Patrick Noland
On 2017/05/01 17:07:56, sky wrote: > I'm not familiar with this code. Could you get ...
3 years, 7 months ago (2017-05-01 17:17:42 UTC) #15
skym
lgtm Removing sky@/stanic@, adding treib@ for SUS change, PTAL. https://codereview.chromium.org/2847803008/diff/60001/chrome/browser/sync/chrome_sync_client.cc File chrome/browser/sync/chrome_sync_client.cc (right): https://codereview.chromium.org/2847803008/diff/60001/chrome/browser/sync/chrome_sync_client.cc#newcode451 chrome/browser/sync/chrome_sync_client.cc:451: ...
3 years, 7 months ago (2017-05-01 17:24:05 UTC) #17
Marc Treib
https://codereview.chromium.org/2847803008/diff/60001/chrome/browser/sync/chrome_sync_client.cc File chrome/browser/sync/chrome_sync_client.cc (right): https://codereview.chromium.org/2847803008/diff/60001/chrome/browser/sync/chrome_sync_client.cc#newcode451 chrome/browser/sync/chrome_sync_client.cc:451: // SupervisedUserServiceFactory depends on ProfileSyncServiceFactory On 2017/05/01 17:24:03, skym ...
3 years, 7 months ago (2017-05-02 08:27:36 UTC) #18
Marc Treib
Ah, and a description nit: Please put a short "title" into the first line of ...
3 years, 7 months ago (2017-05-02 08:30:01 UTC) #19
rishiag
https://codereview.chromium.org/2847803008/diff/60001/chrome/browser/sync/chrome_sync_client.cc File chrome/browser/sync/chrome_sync_client.cc (right): https://codereview.chromium.org/2847803008/diff/60001/chrome/browser/sync/chrome_sync_client.cc#newcode451 chrome/browser/sync/chrome_sync_client.cc:451: // SupervisedUserServiceFactory depends on ProfileSyncServiceFactory On 2017/05/01 17:24:03, skym ...
3 years, 7 months ago (2017-05-05 17:22:02 UTC) #21
rishiag
3 years, 7 months ago (2017-05-05 17:22:04 UTC) #22
rishiag
3 years, 7 months ago (2017-05-05 17:22:05 UTC) #23
Marc Treib
lgtm Description nit: These services are not singletons; they exist per-profile. https://codereview.chromium.org/2847803008/diff/100001/chrome/browser/supervised_user/supervised_user_service_factory.cc File chrome/browser/supervised_user/supervised_user_service_factory.cc (right): ...
3 years, 7 months ago (2017-05-08 08:14:14 UTC) #28
rishiag
https://codereview.chromium.org/2847803008/diff/100001/chrome/browser/supervised_user/supervised_user_service_factory.cc File chrome/browser/supervised_user/supervised_user_service_factory.cc (right): https://codereview.chromium.org/2847803008/diff/100001/chrome/browser/supervised_user/supervised_user_service_factory.cc#newcode31 chrome/browser/supervised_user/supervised_user_service_factory.cc:31: GetInstance()->GetServiceForBrowserContext(profile, false /* create */)); On 2017/05/08 08:14:13, Marc ...
3 years, 7 months ago (2017-05-08 17:55:15 UTC) #30
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/2847803008/140001
3 years, 7 months ago (2017-05-08 18:22:22 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/405814)
3 years, 7 months ago (2017-05-08 18:31:27 UTC) #35
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/2847803008/140001
3 years, 7 months ago (2017-05-09 16:48:57 UTC) #37
commit-bot: I haz the power
3 years, 7 months ago (2017-05-09 16:58:59 UTC) #40
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/1c532233baf652b7af9189fb2bce...

Powered by Google App Engine
This is Rietveld 408576698