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

Issue 2166523003: Add ref count to service workers for extension API. (Closed)

Created:
4 years, 5 months ago by lazyboy
Modified:
4 years, 2 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, tzik, serviceworker-reviews, jam, kinuko+serviceworker, nhiroki, darin-cc_chromium.org, horo+watch_chromium.org, chromium-apps-reviews_chromium.org, kinuko+watch, jsbell+serviceworker_chromium.org, blink-worker-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ref count to service workers for extension API. We need a way to keep a service worker alive 1) during extension function's request->response roundtrip completes. 2) when an event is about to be dispatched to a (stopped) service worker. This CL shows a way to do #1. #2 can follow later. The CL adds plumbing to expose functions to increment/decrement ref counting to an ServiceWorkerVersion. This is done by adding a way to add "external requests" to a ServiceWorkerVersion: when a worker has external requests pending, it will be considered to be in working state, i.e ServiceWorkerVersion::HasWork() will return true. The public interface is exposed through ServiceWorkerContext. And the interface methods expect a GUID/nonce for each such requests from service worker renderer: ServiceWorkerContext::StartingExternalRequest() and ServiceWorkerContext::FinishedExternalRequest() Extension APIs that are expected to be long running aren't handled in this CL. For example: an extension API showing a dialog to user that waits for user action. BUG=602442 Test=There's no easy way to test it without tweaking the code, I've used the following steps to make sure that we keep SW alive when an extension API is in-flight: Change the stop worker idle timeout and worker timeout to sth small, e.g. 3s. Call an extension function that runs for 7s (> 3s + 3s). Without the CL, the extension function's callback won't be called because the worker would shut down after 6s. The added test ServiceWorkerTest.WorkerRefCount tests this at a bit lower level: by checking ref count (= count of external requests for a ServiceWorkerVersion). Committed: https://crrev.com/4c82177a8b45303c941ddbc469444f0bfc760de4 Cr-Commit-Position: refs/heads/master@{#425824}

Patch Set 1 #

Total comments: 4

Patch Set 2 : IncrementRefCount->IncrementPendingActivity #

Patch Set 3 : Move to use ServiceWorkerVersion::{Start/Finish}Request #

Patch Set 4 : add a note #

Patch Set 5 : sync @tott #

Patch Set 6 : Increment worker ref count before executing function, bail out if worker died #

Patch Set 7 : Increment worker ref count before executing function, bail out if worker died #

Patch Set 8 : sync and cleanup #

Patch Set 9 : send increment/decrement request from renderer/ process #

Total comments: 24

Patch Set 10 : upload for real this time, address comments from falken@ and michaeln@ #

Total comments: 8

Patch Set 11 : addres comments from falken@ #

Total comments: 10

Patch Set 12 : address comments from falken@ #

Total comments: 2

Patch Set 13 : address comments from falken@ #

Total comments: 38

Patch Set 14 : address comments from Devlin + MichaelN #

Total comments: 9

Patch Set 15 : address comments from Devlin #

Total comments: 6

Patch Set 16 : address comments from Devlin & MichaelN #

Total comments: 17

Patch Set 17 : address comments from Devlin #

Total comments: 4

Patch Set 18 : address test comments + rename public methods #

Total comments: 4

Patch Set 19 : address comments from Avi #

Patch Set 20 : address comments from tsepez@ + typo fix #

Patch Set 21 : sync@tott #

Unified diffs Side-by-side diffs Delta from patch set Stats (+558 lines, -88 lines) Patch
M chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/service_worker_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +77 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +4 lines, -4 lines 0 comments Download
A chrome/test/data/extensions/api_test/service_worker/api_worker_ref_count/manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +5 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/service_worker/api_worker_ref_count/page.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/api_test/service_worker/api_worker_ref_count/page.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +33 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/service_worker/api_worker_ref_count/sw.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -5 lines 0 comments Download
M content/browser/service_worker/service_worker_context_wrapper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +7 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_wrapper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +49 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_metrics.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_metrics.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_version.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +25 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +48 lines, -0 lines 0 comments Download
M content/public/browser/service_worker_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +30 lines, -6 lines 0 comments Download
M content/public/renderer/content_renderer_client.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +2 lines, -2 lines 0 comments Download
M extensions/browser/bad_message.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +9 lines, -0 lines 0 comments Download
M extensions/browser/bad_message.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +17 lines, -2 lines 0 comments Download
M extensions/browser/extension_function.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +11 lines, -5 lines 0 comments Download
M extensions/browser/extension_function.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +7 lines, -4 lines 0 comments Download
M extensions/browser/extension_function_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M extensions/browser/extension_function_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 8 chunks +36 lines, -20 lines 0 comments Download
M extensions/browser/extension_service_worker_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +13 lines, -2 lines 0 comments Download
M extensions/browser/extension_service_worker_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +32 lines, -1 line 0 comments Download
M extensions/browser/extension_util.h View 2 chunks +5 lines, -0 lines 0 comments Download
M extensions/browser/extension_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +13 lines, -0 lines 0 comments Download
M extensions/common/api/_api_features.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -0 lines 0 comments Download
M extensions/common/constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/common/extension_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +20 lines, -3 lines 0 comments Download
M extensions/renderer/dispatcher.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M extensions/renderer/dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +5 lines, -4 lines 0 comments Download
M extensions/renderer/request_sender.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -1 line 0 comments Download
M extensions/renderer/service_worker_data.h View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -4 lines 0 comments Download
M extensions/renderer/service_worker_data.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M extensions/renderer/service_worker_request_sender.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -2 lines 0 comments Download
M extensions/renderer/service_worker_request_sender.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +28 lines, -3 lines 0 comments Download
M extensions/renderer/worker_thread_dispatcher.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -3 lines 0 comments Download
M extensions/renderer/worker_thread_dispatcher.cc View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -7 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 99 (33 generated)
falken
https://codereview.chromium.org/2166523003/diff/1/content/browser/service_worker/embedded_worker_instance.h File content/browser/service_worker/embedded_worker_instance.h (right): https://codereview.chromium.org/2166523003/diff/1/content/browser/service_worker/embedded_worker_instance.h#newcode200 content/browser/service_worker/embedded_worker_instance.h:200: void DecrementRefCount(); ref count is kind of generic, maybe ...
4 years, 5 months ago (2016-07-22 05:06:02 UTC) #2
waxmiguel
On 2016/07/22 05:06:02, falken wrote: > https://codereview.chromium.org/2166523003/diff/1/content/browser/service_worker/embedded_worker_instance.h > File content/browser/service_worker/embedded_worker_instance.h (right): > > https://codereview.chromium.org/2166523003/diff/1/content/browser/service_worker/embedded_worker_instance.h#newcode200 > ...
4 years, 5 months ago (2016-07-22 05:11:41 UTC) #3
lazyboy
kinuko@/horo@, can any of you take a look at the content/ part of the CL? ...
4 years, 4 months ago (2016-07-26 17:45:48 UTC) #5
michaeln
I didn't look closely, so i may be off base... The ServiceWorkerVersion has StartRequest + ...
4 years, 4 months ago (2016-07-26 18:55:48 UTC) #6
lazyboy
On 2016/07/26 18:55:48, michaeln wrote: > I didn't look closely, so i may be off ...
4 years, 4 months ago (2016-07-26 20:05:01 UTC) #7
lazyboy
@michaeln please take a look at the approach in patch set #4: 1. I'm using ...
4 years, 4 months ago (2016-07-27 01:22:31 UTC) #9
horo
> We need a way to keep a service worker alive > 1) during extension ...
4 years, 4 months ago (2016-07-27 05:59:55 UTC) #10
lazyboy
On 2016/07/27 05:59:55, horo wrote: > > We need a way to keep a service ...
4 years, 4 months ago (2016-07-27 20:21:07 UTC) #11
michaeln
On 2016/07/27 20:21:07, lazyboy wrote: > On 2016/07/27 05:59:55, horo wrote: > > > We ...
4 years, 4 months ago (2016-07-27 20:47:13 UTC) #12
horo
OK. I understand why you need to increment/decrement the keepalive count to support extension APIs ...
4 years, 4 months ago (2016-07-28 06:25:34 UTC) #13
lazyboy
Sorry, this kept slipping, I'm back to working on this! (removing other reviewers to avoid ...
4 years, 4 months ago (2016-08-18 18:22:27 UTC) #17
michaeln
Maybe the way to do this is more from the renderer side? Consider methods like ...
4 years, 4 months ago (2016-08-19 01:01:59 UTC) #18
lazyboy
On 2016/08/19 01:01:59, michaeln wrote: > Maybe the way to do this is more from ...
4 years, 4 months ago (2016-08-19 01:37:23 UTC) #19
horo
> # what race could we encounter here? I wrote the diagram about the race ...
4 years, 4 months ago (2016-08-19 09:04:13 UTC) #20
michaeln
On 2016/08/19 09:04:13, horo wrote: > > # what race could we encounter here? > ...
4 years, 4 months ago (2016-08-19 19:14:37 UTC) #21
horo
On 2016/08/19 19:14:37, michaeln wrote: > On 2016/08/19 09:04:13, horo wrote: > > > # ...
4 years, 3 months ago (2016-08-24 01:55:51 UTC) #22
michaeln
On 2016/08/24 01:55:51, horo wrote: > On 2016/08/19 19:14:37, michaeln wrote: > > On 2016/08/19 ...
4 years, 3 months ago (2016-08-24 19:10:35 UTC) #23
lazyboy
Moved increment/decrement ref count logic to renderer/->IO thread IPC, please take a look, thanks!
4 years, 3 months ago (2016-09-15 01:33:38 UTC) #24
horo
On 2016/09/15 01:33:38, lazyboy wrote: > Moved increment/decrement ref count logic to renderer/->IO thread IPC, ...
4 years, 3 months ago (2016-09-16 16:54:54 UTC) #26
falken
On 2016/09/16 16:54:54, horo wrote: > On 2016/09/15 01:33:38, lazyboy wrote: > > Moved increment/decrement ...
4 years, 3 months ago (2016-09-20 06:29:53 UTC) #27
falken
This looks pretty good. Regarding the timeout allowance, SWVersion currently imposes a 5 minute timeout ...
4 years, 2 months ago (2016-09-23 02:27:35 UTC) #28
michaeln
looks nice, are we sure about the raw sw_context ptr? https://codereview.chromium.org/2166523003/diff/200001/content/public/browser/service_worker_context.h File content/public/browser/service_worker_context.h (right): https://codereview.chromium.org/2166523003/diff/200001/content/public/browser/service_worker_context.h#newcode21 ...
4 years, 2 months ago (2016-09-24 01:46:51 UTC) #29
lazyboy
re: raw ServiceWorkerContext ptr in ExtensionServiceWorkerMessageFilter: I've seen in other places where this is done, ...
4 years, 2 months ago (2016-09-27 21:26:45 UTC) #30
falken
I think you forgot to upload the new patch. Is there any bug you can ...
4 years, 2 months ago (2016-09-28 13:40:21 UTC) #31
lazyboy
On 2016/09/28 13:40:21, falken (ooo Sep 29) wrote: > I think you forgot to upload ...
4 years, 2 months ago (2016-09-28 17:18:34 UTC) #33
falken
https://codereview.chromium.org/2166523003/diff/220001/content/browser/service_worker/service_worker_context_wrapper.cc File content/browser/service_worker/service_worker_context_wrapper.cc (right): https://codereview.chromium.org/2166523003/diff/220001/content/browser/service_worker/service_worker_context_wrapper.cc#newcode845 content/browser/service_worker/service_worker_context_wrapper.cc:845: base::Bind(&ServiceWorkerUtils::NoOpStatusCallback)); Are you sure you don't need to use ...
4 years, 2 months ago (2016-09-29 14:52:25 UTC) #34
lazyboy
https://codereview.chromium.org/2166523003/diff/220001/content/browser/service_worker/service_worker_context_wrapper.cc File content/browser/service_worker/service_worker_context_wrapper.cc (right): https://codereview.chromium.org/2166523003/diff/220001/content/browser/service_worker/service_worker_context_wrapper.cc#newcode845 content/browser/service_worker/service_worker_context_wrapper.cc:845: base::Bind(&ServiceWorkerUtils::NoOpStatusCallback)); On 2016/09/29 14:52:24, falken (ooo Sep 29) wrote: ...
4 years, 2 months ago (2016-09-29 18:07:20 UTC) #35
lazyboy
@michaeln, I totally missed giving the other example of raw SWContext pointer :(, it's in ...
4 years, 2 months ago (2016-09-29 21:43:44 UTC) #36
falken
Sorry I have mostly scattered thoughts, I think there's still some timing issues here. https://codereview.chromium.org/2166523003/diff/240001/content/browser/service_worker/service_worker_context_wrapper.cc ...
4 years, 2 months ago (2016-09-30 01:48:56 UTC) #37
lazyboy
I'm liking the nonce/GUID -> request id idea much better now, thanks for the suggestions/reviews ...
4 years, 2 months ago (2016-09-30 08:02:16 UTC) #38
falken
service worker LGTM! > @falken, can you check the ServiceWorkerContext* member in ExtensionServiceWorkerMessageFilter and see ...
4 years, 2 months ago (2016-10-03 04:20:31 UTC) #39
falken
> Not 100% certain, but since SWContext is tied to the StoragePartition which is > ...
4 years, 2 months ago (2016-10-03 04:21:05 UTC) #40
lazyboy
+Devlin for *extensions* review. https://codereview.chromium.org/2166523003/diff/260001/content/browser/service_worker/service_worker_context_wrapper.h File content/browser/service_worker/service_worker_context_wrapper.h (right): https://codereview.chromium.org/2166523003/diff/260001/content/browser/service_worker/service_worker_context_wrapper.h#newcode269 content/browser/service_worker/service_worker_context_wrapper.h:269: // Returns true if the ...
4 years, 2 months ago (2016-10-04 02:42:52 UTC) #47
Devlin
https://codereview.chromium.org/2166523003/diff/280001/chrome/browser/extensions/service_worker_apitest.cc File chrome/browser/extensions/service_worker_apitest.cc (right): https://codereview.chromium.org/2166523003/diff/280001/chrome/browser/extensions/service_worker_apitest.cc#newcode625 chrome/browser/extensions/service_worker_apitest.cc:625: ASSERT_EQ("chrome.tabs.update callback", result); I'm a little confused on the ...
4 years, 2 months ago (2016-10-05 17:02:26 UTC) #48
michaeln
https://codereview.chromium.org/2166523003/diff/280001/content/browser/service_worker/service_worker_context_wrapper.cc File content/browser/service_worker/service_worker_context_wrapper.cc (right): https://codereview.chromium.org/2166523003/diff/280001/content/browser/service_worker/service_worker_context_wrapper.cc#newcode401 content/browser/service_worker/service_worker_context_wrapper.cc:401: *request_id = iter->second; where is .erase(iter)? i don't see ...
4 years, 2 months ago (2016-10-05 19:22:53 UTC) #49
lazyboy
See patchset #14 https://codereview.chromium.org/2166523003/diff/280001/chrome/browser/extensions/service_worker_apitest.cc File chrome/browser/extensions/service_worker_apitest.cc (right): https://codereview.chromium.org/2166523003/diff/280001/chrome/browser/extensions/service_worker_apitest.cc#newcode625 chrome/browser/extensions/service_worker_apitest.cc:625: ASSERT_EQ("chrome.tabs.update callback", result); On 2016/10/05 17:02:25, ...
4 years, 2 months ago (2016-10-06 01:02:07 UTC) #50
Devlin
Lifetime question: What's to prevent the flow of Renderer sends SW request IPC Browser shuts ...
4 years, 2 months ago (2016-10-06 16:35:12 UTC) #51
Devlin
https://codereview.chromium.org/2166523003/diff/300001/extensions/DEPS File extensions/DEPS (right): https://codereview.chromium.org/2166523003/diff/300001/extensions/DEPS#newcode10 extensions/DEPS:10: "+content/common", On 2016/10/06 16:35:12, Devlin wrote: > This won't ...
4 years, 2 months ago (2016-10-06 16:36:13 UTC) #52
lazyboy
> Lifetime question: What's to prevent the flow of > > Renderer sends SW request ...
4 years, 2 months ago (2016-10-06 17:57:37 UTC) #53
Devlin
https://codereview.chromium.org/2166523003/diff/280001/chrome/browser/extensions/service_worker_apitest.cc File chrome/browser/extensions/service_worker_apitest.cc (right): https://codereview.chromium.org/2166523003/diff/280001/chrome/browser/extensions/service_worker_apitest.cc#newcode625 chrome/browser/extensions/service_worker_apitest.cc:625: ASSERT_EQ("chrome.tabs.update callback", result); On 2016/10/06 17:57:37, lazyboy wrote: > ...
4 years, 2 months ago (2016-10-06 18:58:07 UTC) #54
michaeln
thnx for shuffling that around https://codereview.chromium.org/2166523003/diff/320001/content/browser/service_worker/service_worker_context_wrapper.cc File content/browser/service_worker/service_worker_context_wrapper.cc (right): https://codereview.chromium.org/2166523003/diff/320001/content/browser/service_worker/service_worker_context_wrapper.cc#newcode844 content/browser/service_worker/service_worker_context_wrapper.cc:844: whitespace nit: blank line ...
4 years, 2 months ago (2016-10-06 19:22:32 UTC) #55
lazyboy
https://codereview.chromium.org/2166523003/diff/280001/chrome/browser/extensions/service_worker_apitest.cc File chrome/browser/extensions/service_worker_apitest.cc (right): https://codereview.chromium.org/2166523003/diff/280001/chrome/browser/extensions/service_worker_apitest.cc#newcode625 chrome/browser/extensions/service_worker_apitest.cc:625: ASSERT_EQ("chrome.tabs.update callback", result); On 2016/10/06 18:58:06, Devlin wrote: > ...
4 years, 2 months ago (2016-10-07 06:00:57 UTC) #56
Devlin
Nice! A couple requests for additions to the test and nits, but otherwise this looks ...
4 years, 2 months ago (2016-10-07 15:13:22 UTC) #57
falken
https://codereview.chromium.org/2166523003/diff/340001/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (right): https://codereview.chromium.org/2166523003/diff/340001/content/browser/service_worker/service_worker_version.cc#newcode1804 content/browser/service_worker/service_worker_version.cc:1804: external_request_uuid_to_request_id_.clear(); On 2016/10/07 15:13:22, Devlin wrote: > For my ...
4 years, 2 months ago (2016-10-07 15:22:03 UTC) #58
Devlin
https://codereview.chromium.org/2166523003/diff/340001/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (right): https://codereview.chromium.org/2166523003/diff/340001/content/browser/service_worker/service_worker_version.cc#newcode1804 content/browser/service_worker/service_worker_version.cc:1804: external_request_uuid_to_request_id_.clear(); On 2016/10/07 15:22:03, falken wrote: > On 2016/10/07 ...
4 years, 2 months ago (2016-10-07 15:46:37 UTC) #59
lazyboy
https://codereview.chromium.org/2166523003/diff/340001/chrome/browser/extensions/service_worker_apitest.cc File chrome/browser/extensions/service_worker_apitest.cc (right): https://codereview.chromium.org/2166523003/diff/340001/chrome/browser/extensions/service_worker_apitest.cc#newcode658 chrome/browser/extensions/service_worker_apitest.cc:658: On 2016/10/07 15:13:22, Devlin wrote: > Check ref count ...
4 years, 2 months ago (2016-10-07 18:50:10 UTC) #60
Devlin
extensions lgtm https://codereview.chromium.org/2166523003/diff/340001/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (right): https://codereview.chromium.org/2166523003/diff/340001/content/browser/service_worker/service_worker_version.cc#newcode1804 content/browser/service_worker/service_worker_version.cc:1804: external_request_uuid_to_request_id_.clear(); On 2016/10/07 18:50:10, lazyboy wrote: > ...
4 years, 2 months ago (2016-10-07 19:06:45 UTC) #61
michaeln
the parts i reviewed lgtm 2 https://codereview.chromium.org/2166523003/diff/340001/content/public/browser/service_worker_context.h File content/public/browser/service_worker_context.h (right): https://codereview.chromium.org/2166523003/diff/340001/content/public/browser/service_worker_context.h#newcode70 content/public/browser/service_worker_context.h:70: virtual bool IncrementPendingActivity(int64_t ...
4 years, 2 months ago (2016-10-07 20:10:30 UTC) #62
lazyboy
+avi for content/public changes: content/public/browser/service_worker_context.h content/public/renderer/content_renderer_client.h +tsepez for IPC changes: extensions/common/extension_messages.h +mpearson for histograms: tools/metrics/histograms/histograms.xml ...
4 years, 2 months ago (2016-10-07 21:28:41 UTC) #64
Avi (use Gerrit)
content/public lgtm with nits https://codereview.chromium.org/2166523003/diff/380001/content/public/browser/service_worker_context.h File content/public/browser/service_worker_context.h (right): https://codereview.chromium.org/2166523003/diff/380001/content/public/browser/service_worker_context.h#newcode37 content/public/browser/service_worker_context.h:37: CountExternalRequestsCallback; Can we use the ...
4 years, 2 months ago (2016-10-07 21:33:11 UTC) #65
Tom Sepez
https://codereview.chromium.org/2166523003/diff/380001/extensions/common/extension_messages.h File extensions/common/extension_messages.h (right): https://codereview.chromium.org/2166523003/diff/380001/extensions/common/extension_messages.h#newcode891 extensions/common/extension_messages.h:891: // Asks the browser to increment the pending activity ...
4 years, 2 months ago (2016-10-07 22:31:46 UTC) #66
lazyboy
https://codereview.chromium.org/2166523003/diff/380001/content/public/browser/service_worker_context.h File content/public/browser/service_worker_context.h (right): https://codereview.chromium.org/2166523003/diff/380001/content/public/browser/service_worker_context.h#newcode37 content/public/browser/service_worker_context.h:37: CountExternalRequestsCallback; On 2016/10/07 21:33:11, Avi wrote: > Can we ...
4 years, 2 months ago (2016-10-07 22:31:49 UTC) #67
lazyboy
https://codereview.chromium.org/2166523003/diff/380001/extensions/common/extension_messages.h File extensions/common/extension_messages.h (right): https://codereview.chromium.org/2166523003/diff/380001/extensions/common/extension_messages.h#newcode891 extensions/common/extension_messages.h:891: // Asks the browser to increment the pending activity ...
4 years, 2 months ago (2016-10-07 23:16:59 UTC) #68
Tom Sepez
> A compromised renderer can keep sending same request_uuid, in that case: > For increment: ...
4 years, 2 months ago (2016-10-07 23:53:51 UTC) #71
michaeln
still lgtm but would look even better with a commit message using "external request" sort ...
4 years, 2 months ago (2016-10-08 00:05:30 UTC) #72
lazyboy
On 2016/10/08 00:05:30, michaeln wrote: > still lgtm but would look even better with a ...
4 years, 2 months ago (2016-10-08 00:24:54 UTC) #77
horo
lgtm
4 years, 2 months ago (2016-10-08 09:56:02 UTC) #80
falken
On 2016/10/07 15:46:37, Devlin wrote: > https://codereview.chromium.org/2166523003/diff/340001/content/browser/service_worker/service_worker_version.cc > File content/browser/service_worker/service_worker_version.cc (right): > > https://codereview.chromium.org/2166523003/diff/340001/content/browser/service_worker/service_worker_version.cc#newcode1804 > ...
4 years, 2 months ago (2016-10-11 01:03:57 UTC) #81
lazyboy
+asvitkine for histograms. @falken, chatting about long lived issue sg, would you have time chatting ...
4 years, 2 months ago (2016-10-14 00:00:59 UTC) #83
falken
On 2016/10/14 00:00:59, lazyboy wrote: > +asvitkine for histograms. > > @falken, chatting about long ...
4 years, 2 months ago (2016-10-14 00:55:29 UTC) #84
Alexei Svitkine (slow)
histograms lgtm
4 years, 2 months ago (2016-10-14 15:41:27 UTC) #85
lazyboy
+thestig for chrome/renderer/chrome_content_renderer_client.h chrome/renderer/chrome_content_renderer_client.cc
4 years, 2 months ago (2016-10-17 18:17:20 UTC) #91
Lei Zhang
On 2016/10/17 18:17:20, lazyboy wrote: > +thestig for chrome/renderer/chrome_content_renderer_client.h > chrome/renderer/chrome_content_renderer_client.cc lgtm
4 years, 2 months ago (2016-10-17 18:39:31 UTC) #92
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/2166523003/440001
4 years, 2 months ago (2016-10-17 22:23:05 UTC) #95
commit-bot: I haz the power
Committed patchset #21 (id:440001)
4 years, 2 months ago (2016-10-18 00:04:36 UTC) #97
commit-bot: I haz the power
4 years, 2 months ago (2016-10-18 00:07:50 UTC) #99
Message was sent while issue was closed.
Patchset 21 (id:??) landed as
https://crrev.com/4c82177a8b45303c941ddbc469444f0bfc760de4
Cr-Commit-Position: refs/heads/master@{#425824}

Powered by Google App Engine
This is Rietveld 408576698