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

Issue 1283703003: Change ownership of BackgroundSyncServiceImpl to BackgroundSyncContextImpl (Closed)

Created:
5 years, 4 months ago by jkarlin
Modified:
5 years, 4 months ago
CC:
chromium-reviews, tim+watch_chromium.org, nasko+codewatch_chromium.org, creis+watch_chromium.org, zea+watch_chromium.org, maxbogue+watch_chromium.org, jam, pvalenzuela+watch_chromium.org, plaree+watch_chromium.org, jkarlin+watch_chromium.org, darin-cc_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change ownership of BackgroundSyncServiceImpl to BackgroundSyncContextImpl Previously BackgroundSyncServiceImpl was deleted by mojo very late on shutdown (on messageloop destruction). This is way too late. Instead, let the BackgroundSyncContextImpl own them. BUG=517122 Committed: https://crrev.com/3440155cd4d8bb061f8261f6e01564804bb9f155 Cr-Commit-Position: refs/heads/master@{#343215}

Patch Set 1 #

Patch Set 2 : Small fixes #

Total comments: 6

Patch Set 3 : Address comments from PS2 #

Patch Set 4 : Rebase #

Patch Set 5 : Remove scoped_refptr #

Total comments: 4

Patch Set 6 : Remove ref cycle #

Total comments: 2

Patch Set 7 : Fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -38 lines) Patch
M content/browser/background_sync/background_sync_context_impl.h View 1 2 3 4 5 6 3 chunks +23 lines, -1 line 0 comments Download
M content/browser/background_sync/background_sync_context_impl.cc View 1 2 3 4 5 4 chunks +31 lines, -0 lines 0 comments Download
M content/browser/background_sync/background_sync_service_impl.h View 1 2 3 4 5 4 chunks +10 lines, -12 lines 0 comments Download
M content/browser/background_sync/background_sync_service_impl.cc View 1 2 3 4 5 1 chunk +11 lines, -22 lines 0 comments Download
M content/browser/background_sync/background_sync_service_impl_unittest.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 23 (7 generated)
jkarlin
iclelland, PTAL, thanks!
5 years, 4 months ago (2015-08-11 15:43:25 UTC) #3
iclelland
Just a couple of questions for you, but otherwise lgtm https://codereview.chromium.org/1283703003/diff/40001/content/browser/background_sync/background_sync_context_impl.cc File content/browser/background_sync/background_sync_context_impl.cc (right): https://codereview.chromium.org/1283703003/diff/40001/content/browser/background_sync/background_sync_context_impl.cc#newcode21 ...
5 years, 4 months ago (2015-08-12 04:01:09 UTC) #4
jkarlin
Thanks! https://codereview.chromium.org/1283703003/diff/40001/content/browser/background_sync/background_sync_context_impl.cc File content/browser/background_sync/background_sync_context_impl.cc (right): https://codereview.chromium.org/1283703003/diff/40001/content/browser/background_sync/background_sync_context_impl.cc#newcode21 content/browser/background_sync/background_sync_context_impl.cc:21: DCHECK(!background_sync_manager_); On 2015/08/12 04:01:09, iclelland wrote: > Is ...
5 years, 4 months ago (2015-08-12 11:50:11 UTC) #5
jkarlin
michaeln@ PTAL at everything for committer approval, thanks! davidben@ PTAL at render_process_host_impl, thanks! (that particular ...
5 years, 4 months ago (2015-08-12 11:54:04 UTC) #7
michaeln
lgtm
5 years, 4 months ago (2015-08-12 20:14:55 UTC) #8
jkarlin
davidben@, PTAL Thanks!
5 years, 4 months ago (2015-08-13 12:02:47 UTC) #9
davidben
> davidben@ PTAL at render_process_host_impl, thanks! (that particular change is > necessary because the render ...
5 years, 4 months ago (2015-08-13 13:36:31 UTC) #11
jkarlin
On 2015/08/13 13:36:31, David Benjamin wrote: > > davidben@ PTAL at render_process_host_impl, thanks! (that particular ...
5 years, 4 months ago (2015-08-13 13:55:25 UTC) #12
jkarlin
On 2015/08/13 13:55:25, jkarlin wrote: > On 2015/08/13 13:36:31, David Benjamin wrote: > > > ...
5 years, 4 months ago (2015-08-13 13:57:46 UTC) #13
davidben
https://codereview.chromium.org/1283703003/diff/100001/content/browser/background_sync/background_sync_context_impl.cc File content/browser/background_sync/background_sync_context_impl.cc (right): https://codereview.chromium.org/1283703003/diff/100001/content/browser/background_sync/background_sync_context_impl.cc#newcode59 content/browser/background_sync/background_sync_context_impl.cc:59: services_.erase(service); I don't think it can actually make a ...
5 years, 4 months ago (2015-08-13 14:54:30 UTC) #14
jkarlin
Thanks, PTAL david! https://codereview.chromium.org/1283703003/diff/100001/content/browser/background_sync/background_sync_context_impl.cc File content/browser/background_sync/background_sync_context_impl.cc (right): https://codereview.chromium.org/1283703003/diff/100001/content/browser/background_sync/background_sync_context_impl.cc#newcode59 content/browser/background_sync/background_sync_context_impl.cc:59: services_.erase(service); On 2015/08/13 14:54:30, David Benjamin ...
5 years, 4 months ago (2015-08-13 15:24:27 UTC) #16
davidben
lgtm. I'm not really familiar with Mojo and assume the other two reviewers covered that. ...
5 years, 4 months ago (2015-08-13 15:49:18 UTC) #17
jkarlin
Thanks! https://codereview.chromium.org/1283703003/diff/140001/content/browser/background_sync/background_sync_context_impl.h File content/browser/background_sync/background_sync_context_impl.h (right): https://codereview.chromium.org/1283703003/diff/140001/content/browser/background_sync/background_sync_context_impl.h#newcode41 content/browser/background_sync/background_sync_context_impl.h:41: // Called by BackgroundSyncServciceImpl objects so that they ...
5 years, 4 months ago (2015-08-13 15:51:21 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1283703003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1283703003/160001
5 years, 4 months ago (2015-08-13 15:51:56 UTC) #21
commit-bot: I haz the power
Committed patchset #7 (id:160001)
5 years, 4 months ago (2015-08-13 16:34:37 UTC) #22
commit-bot: I haz the power
5 years, 4 months ago (2015-08-13 16:35:24 UTC) #23
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/3440155cd4d8bb061f8261f6e01564804bb9f155
Cr-Commit-Position: refs/heads/master@{#343215}

Powered by Google App Engine
This is Rietveld 408576698