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

Issue 1410753003: Update IPC browser_plugin_instance_id before sending queued messages (Closed)

Created:
5 years, 2 months ago by wjmaclean
Modified:
5 years, 2 months ago
Reviewers:
lazyboy, lfg
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

Update IPC browser_plugin_instance_id before sending queued messages Currently, if BrowserPluginGuest receives messages for a BrowserPlugin prior to attachment, the message may be created with an invalid (0) value of |browser_plugin_instance_id|. After attachment, when queued messages are sent, these messages disappear into the ether. This CL modifies queued IPC messages in BrowserPluginGuest before those messages are sent, in order to give them a valid instance id. BUG=534839 Committed: https://crrev.com/6f63918adf16bbd01bba2acb42ca87755fc8f439 Cr-Commit-Position: refs/heads/master@{#354572}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use CHECK() instead of LOG(ERROR). #

Total comments: 2

Patch Set 3 : Move computation outside CHECK(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -1 line) Patch
M content/browser/browser_plugin/browser_plugin_guest.h View 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 2 chunks +42 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 26 (7 generated)
wjmaclean
Opening a new review issue for this work, since this approach is drastically different from ...
5 years, 2 months ago (2015-10-16 15:53:13 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1410753003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1410753003/1
5 years, 2 months ago (2015-10-16 15:53:38 UTC) #4
lfg
Overall, I don't like this approach of modifying some binary data without being able to ...
5 years, 2 months ago (2015-10-16 16:26:36 UTC) #5
wjmaclean
> Overall, I don't like this approach of modifying some > binary data without being ...
5 years, 2 months ago (2015-10-16 16:50:34 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-16 16:57:56 UTC) #8
lfg
On 2015/10/16 16:50:34, wjmaclean wrote: > > I prefer the old approach much better than ...
5 years, 2 months ago (2015-10-16 17:03:57 UTC) #9
Fady Samuel
On 2015/10/16 17:03:57, lfg wrote: > On 2015/10/16 16:50:34, wjmaclean wrote: > > > I ...
5 years, 2 months ago (2015-10-16 17:12:00 UTC) #10
wjmaclean
On 2015/10/16 17:12:00, Fady Samuel wrote: > On 2015/10/16 17:03:57, lfg wrote: > > On ...
5 years, 2 months ago (2015-10-16 17:33:04 UTC) #11
wjmaclean
Updated, ptal ...
5 years, 2 months ago (2015-10-16 17:48:57 UTC) #12
lazyboy
lgtm.
5 years, 2 months ago (2015-10-16 17:57:53 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1410753003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1410753003/20001
5 years, 2 months ago (2015-10-16 18:03:26 UTC) #15
lfg
lgtm with one nit. https://codereview.chromium.org/1410753003/diff/20001/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://codereview.chromium.org/1410753003/diff/20001/content/browser/browser_plugin/browser_plugin_guest.cc#newcode596 content/browser/browser_plugin/browser_plugin_guest.cc:596: CHECK(iter.ReadBytes(&data, remaining_bytes)) It's not a ...
5 years, 2 months ago (2015-10-16 18:25:49 UTC) #16
lazyboy
https://codereview.chromium.org/1410753003/diff/20001/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://codereview.chromium.org/1410753003/diff/20001/content/browser/browser_plugin/browser_plugin_guest.cc#newcode596 content/browser/browser_plugin/browser_plugin_guest.cc:596: CHECK(iter.ReadBytes(&data, remaining_bytes)) On 2015/10/16 18:25:49, lfg wrote: > It's ...
5 years, 2 months ago (2015-10-16 18:27:16 UTC) #17
wjmaclean
On 2015/10/16 18:27:16, lazyboy wrote: > https://codereview.chromium.org/1410753003/diff/20001/content/browser/browser_plugin/browser_plugin_guest.cc > File content/browser/browser_plugin/browser_plugin_guest.cc (right): > > https://codereview.chromium.org/1410753003/diff/20001/content/browser/browser_plugin/browser_plugin_guest.cc#newcode596 > ...
5 years, 2 months ago (2015-10-16 18:31:04 UTC) #19
lfg
On 2015/10/16 18:31:04, wjmaclean wrote: > I though CHECK()s were always on ... (e.g. look ...
5 years, 2 months ago (2015-10-16 18:34:23 UTC) #20
wjmaclean
On 2015/10/16 18:34:23, lfg wrote: > On 2015/10/16 18:31:04, wjmaclean wrote: > > I though ...
5 years, 2 months ago (2015-10-16 18:36:34 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1410753003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1410753003/40001
5 years, 2 months ago (2015-10-16 18:39:52 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 2 months ago (2015-10-16 19:57:31 UTC) #25
commit-bot: I haz the power
5 years, 2 months ago (2015-10-16 19:58:39 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6f63918adf16bbd01bba2acb42ca87755fc8f439
Cr-Commit-Position: refs/heads/master@{#354572}

Powered by Google App Engine
This is Rietveld 408576698