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

Issue 996173006: [Presentation API] Fix potential callback leaks in PSImpl. (Closed)

Created:
5 years, 9 months ago by imcheng (use chromium acct)
Modified:
5 years, 9 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Presentation API] Fix potential callback leaks in PSImpl. Background: mojo rolled out a new version that requires callbacks (as defined by the => syntax in mojom) must be invoked before they go out of scope, otherwise it indicates a connection error on the callback's recipient, which will destroy mojom implementations that are strongly bound to the connection. Note that a partial fix was added in crrev.com/1019173002. This patch addresses the remaining points. BUG=468575 Committed: https://crrev.com/31fe0da9286d9f24b9cd33e6d8c6c55651f5f47e Cr-Commit-Position: refs/heads/master@{#322299}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed Anton's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -23 lines) Patch
M content/browser/presentation/presentation_service_impl.h View 1 4 chunks +21 lines, -2 lines 0 comments Download
M content/browser/presentation/presentation_service_impl.cc View 1 6 chunks +53 lines, -21 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
imcheng
Anton, mark: PTAL. I feel that the callback style API between PresentationDispatcher and PSImpl might ...
5 years, 9 months ago (2015-03-24 02:03:26 UTC) #2
mark a. foltz
lgtm I agree with your concerns about bookkeeping of callbacks. However if we implement the ...
5 years, 9 months ago (2015-03-24 23:00:25 UTC) #3
whywhat
lgtm https://codereview.chromium.org/996173006/diff/1/content/browser/presentation/presentation_service_impl.cc File content/browser/presentation/presentation_service_impl.cc (right): https://codereview.chromium.org/996173006/diff/1/content/browser/presentation/presentation_service_impl.cc#newcode187 content/browser/presentation/presentation_service_impl.cc:187: ++next_request_session_id_; I'd encapsulate this logic into something like: ...
5 years, 9 months ago (2015-03-25 17:05:54 UTC) #4
imcheng
https://codereview.chromium.org/996173006/diff/1/content/browser/presentation/presentation_service_impl.cc File content/browser/presentation/presentation_service_impl.cc (right): https://codereview.chromium.org/996173006/diff/1/content/browser/presentation/presentation_service_impl.cc#newcode187 content/browser/presentation/presentation_service_impl.cc:187: ++next_request_session_id_; On 2015/03/25 17:05:54, whywhat wrote: > I'd encapsulate ...
5 years, 9 months ago (2015-03-25 23:03:43 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/996173006/20001
5 years, 9 months ago (2015-03-26 01:54:23 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 9 months ago (2015-03-26 02:08:58 UTC) #9
commit-bot: I haz the power
5 years, 9 months ago (2015-03-26 02:10:18 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/31fe0da9286d9f24b9cd33e6d8c6c55651f5f47e
Cr-Commit-Position: refs/heads/master@{#322299}

Powered by Google App Engine
This is Rietveld 408576698