5 years, 3 months ago
(2015-09-15 16:48:54 UTC)
#5
mojom LGTM
jkarlin
Patchset #3 (id:40001) has been deleted
5 years, 3 months ago
(2015-09-16 16:40:56 UTC)
#6
Patchset #3 (id:40001) has been deleted
jkarlin
PTAL, many thanks
5 years, 3 months ago
(2015-09-16 18:49:39 UTC)
#7
PTAL, many thanks
iclelland
On 2015/09/16 18:49:39, jkarlin wrote: > PTAL, many thanks At first glance, it seems like ...
5 years, 3 months ago
(2015-09-16 20:36:53 UTC)
#8
On 2015/09/16 18:49:39, jkarlin wrote:
> PTAL, many thanks
At first glance, it seems like there are there are three or four orthogonal
changes in this CL:
- Moving the status from the protobuf to the mojom file
- C++ style changes in unrelated methods
- Cleanup from the registration CL (in BackgroundSyncServiceImpl::Unregister)
- SyncRegistration.done, NotifyWhenDone, and related tests (the meat of it)
Is it possible to split it up? At least the git history would make more sense if
the commit message for some of these changes matched the actual reason for the
change.
(Or maybe they're actually tied together more tightly than they look, in which
case, I'll just carry on with the rest of the review :) )
jkarlin
Patchset #4 (id:80001) has been deleted
5 years, 3 months ago
(2015-09-17 00:46:40 UTC)
#9
Patchset #4 (id:80001) has been deleted
jkarlin
On 2015/09/16 20:36:53, iclelland wrote: > On 2015/09/16 18:49:39, jkarlin wrote: > > PTAL, many ...
5 years, 3 months ago
(2015-09-17 00:49:10 UTC)
#10
On 2015/09/16 20:36:53, iclelland wrote:
> On 2015/09/16 18:49:39, jkarlin wrote:
> > PTAL, many thanks
>
> At first glance, it seems like there are there are three or four orthogonal
> changes in this CL:
>
> - Moving the status from the protobuf to the mojom file
Now in its own CL.
> - C++ style changes in unrelated methods
> - Cleanup from the registration CL (in BackgroundSyncServiceImpl::Unregister)
Put the two above in their own CL.
> - SyncRegistration.done, NotifyWhenDone, and related tests (the meat of it)
That's now what this CL is.
iclelland
LGTM! This is great (and much easier to follow now) I left a couple of ...
5 years, 3 months ago
(2015-09-17 13:48:10 UTC)
#11
https://codereview.chromium.org/1344843003/diff/100001/content/browser/background_sync/background_sync_manager.cc File content/browser/background_sync/background_sync_manager.cc (right): https://codereview.chromium.org/1344843003/diff/100001/content/browser/background_sync/background_sync_manager.cc#newcode1106 content/browser/background_sync/background_sync_manager.cc:1106: // if it was already out of retry attempts ...
5 years, 3 months ago
(2015-09-17 17:40:25 UTC)
#12
5 years, 3 months ago
(2015-09-17 18:02:34 UTC)
#13
michaeln: PTAL, thank you.
michaeln
lgtm but please see the comments about thread safety https://codereview.chromium.org/1344843003/diff/160001/content/browser/background_sync/background_sync_manager.h File content/browser/background_sync/background_sync_manager.h (right): https://codereview.chromium.org/1344843003/diff/160001/content/browser/background_sync/background_sync_manager.h#newcode249 content/browser/background_sync/background_sync_manager.h:249: ...
5 years, 3 months ago
(2015-09-17 21:44:12 UTC)
#14
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1344843003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1344843003/180001
5 years, 3 months ago
(2015-09-18 13:50:09 UTC)
#18
https://codereview.chromium.org/1344843003/diff/160001/content/child/background_sync/background_sync_provider_thread_proxy.cc File content/child/background_sync/background_sync_provider_thread_proxy.cc (right): https://codereview.chromium.org/1344843003/diff/160001/content/child/background_sync/background_sync_provider_thread_proxy.cc#newcode216 content/child/background_sync/background_sync_provider_thread_proxy.cc:216: blink::WebSyncNotifyWhenDoneCallbacks* callbacks) { > Yes, good catch. chasej@ is ...
5 years, 3 months ago
(2015-09-18 19:18:52 UTC)
#21
Message was sent while issue was closed.
https://codereview.chromium.org/1344843003/diff/160001/content/child/backgrou...
File content/child/background_sync/background_sync_provider_thread_proxy.cc
(right):
https://codereview.chromium.org/1344843003/diff/160001/content/child/backgrou...
content/child/background_sync/background_sync_provider_thread_proxy.cc:216:
blink::WebSyncNotifyWhenDoneCallbacks* callbacks) {
> Yes, good catch. chasej@ is making good headway into the mojo-per-thread CL.
Glad to hear that. I hope it helps to establish safe best practices for using
mojo in workers. Its just so easy to get introduce threading bugs, having a good
example w/o bugs to follow will be nice.
Can you point me at a cl or other artifacts of work in progress?
5 years, 3 months ago
(2015-09-21 13:28:39 UTC)
#22
Message was sent while issue was closed.
On 2015/09/18 19:18:52, michaeln wrote:
>
https://codereview.chromium.org/1344843003/diff/160001/content/child/backgrou...
> File content/child/background_sync/background_sync_provider_thread_proxy.cc
> (right):
>
>
https://codereview.chromium.org/1344843003/diff/160001/content/child/backgrou...
> content/child/background_sync/background_sync_provider_thread_proxy.cc:216:
> blink::WebSyncNotifyWhenDoneCallbacks* callbacks) {
> > Yes, good catch. chasej@ is making good headway into the mojo-per-thread CL.
>
> Glad to hear that. I hope it helps to establish safe best practices for using
> mojo in workers. Its just so easy to get introduce threading bugs, having a
good
> example w/o bugs to follow will be nice.
>
> Can you point me at a cl or other artifacts of work in progress?
https://code.google.com/p/chromium/issues/detail?id=527601 is the bug, no CL up
for review yet. Last Thursday Jason mentioned that he figured out how to do it
cleanly so I expect a CL in the near future.
jkarlin
On 2015/09/21 13:28:39, jkarlin wrote: > On 2015/09/18 19:18:52, michaeln wrote: > > > https://codereview.chromium.org/1344843003/diff/160001/content/child/background_sync/background_sync_provider_thread_proxy.cc ...
5 years, 3 months ago
(2015-09-23 17:01:02 UTC)
#23
Message was sent while issue was closed.
On 2015/09/21 13:28:39, jkarlin wrote:
> On 2015/09/18 19:18:52, michaeln wrote:
> >
>
https://codereview.chromium.org/1344843003/diff/160001/content/child/backgrou...
> > File content/child/background_sync/background_sync_provider_thread_proxy.cc
> > (right):
> >
> >
>
https://codereview.chromium.org/1344843003/diff/160001/content/child/backgrou...
> > content/child/background_sync/background_sync_provider_thread_proxy.cc:216:
> > blink::WebSyncNotifyWhenDoneCallbacks* callbacks) {
> > > Yes, good catch. chasej@ is making good headway into the mojo-per-thread
CL.
> >
> > Glad to hear that. I hope it helps to establish safe best practices for
using
> > mojo in workers. Its just so easy to get introduce threading bugs, having a
> good
> > example w/o bugs to follow will be nice.
> >
> > Can you point me at a cl or other artifacts of work in progress?
>
> https://code.google.com/p/chromium/issues/detail?id=527601 is the bug, no CL
up
> for review yet. Last Thursday Jason mentioned that he figured out how to do it
> cleanly so I expect a CL in the near future.
https://codereview.chromium.org/1358063004/ is the WIP CL.
Issue 1344843003: [BackgroundSync] Add browser side support for SyncRegistration.done
(Closed)
Created 5 years, 3 months ago by jkarlin
Modified 5 years, 3 months ago
Reviewers: iclelland, michaeln, Tom Sepez
Base URL: https://chromium.googlesource.com/chromium/src.git@ncn_max
Comments: 21