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

Issue 791343003: Fix Native Messaging to handle missing caller RenderWidgetHost. (Closed)

Created:
6 years ago by Sergey Ulanov
Modified:
6 years ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix Native Messaging to handle missing caller RenderWidgetHost. content::RenderWidgetHost::FromID() may return NULL and MessageService::OpenChannelToNativeApp() wasn't handling that case properly. I couldn't reproduce the problem, but I think this change should fix it. BUG=420495 Committed: https://crrev.com/6147e9407e49f2d27d618dddc9d156bbe2a17d28 Cr-Commit-Position: refs/heads/master@{#307964}

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -4 lines) Patch
M chrome/browser/extensions/api/messaging/message_service.cc View 1 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/messaging/native_process_launcher.h View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
Sergey Ulanov
6 years ago (2014-12-11 17:14:33 UTC) #2
not at google - send to devlin
https://codereview.chromium.org/791343003/diff/1/chrome/browser/extensions/api/messaging/message_service.cc File chrome/browser/extensions/api/messaging/message_service.cc (right): https://codereview.chromium.org/791343003/diff/1/chrome/browser/extensions/api/messaging/message_service.cc#newcode410 chrome/browser/extensions/api/messaging/message_service.cc:410: : NULL; Are we supposed to use nullptr these ...
6 years ago (2014-12-11 17:24:43 UTC) #3
Sergey Ulanov
https://codereview.chromium.org/791343003/diff/1/chrome/browser/extensions/api/messaging/message_service.cc File chrome/browser/extensions/api/messaging/message_service.cc (right): https://codereview.chromium.org/791343003/diff/1/chrome/browser/extensions/api/messaging/message_service.cc#newcode410 chrome/browser/extensions/api/messaging/message_service.cc:410: : NULL; On 2014/12/11 17:24:42, kalman wrote: > Are ...
6 years ago (2014-12-11 19:25:29 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/791343003/20001
6 years ago (2014-12-11 19:27:40 UTC) #6
not at google - send to devlin
https://codereview.chromium.org/791343003/diff/1/chrome/browser/extensions/api/messaging/message_service.cc File chrome/browser/extensions/api/messaging/message_service.cc (right): https://codereview.chromium.org/791343003/diff/1/chrome/browser/extensions/api/messaging/message_service.cc#newcode410 chrome/browser/extensions/api/messaging/message_service.cc:410: : NULL; > > Added a comment in native_process_launcer.h ...
6 years ago (2014-12-11 20:19:46 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years ago (2014-12-11 20:37:27 UTC) #8
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/6147e9407e49f2d27d618dddc9d156bbe2a17d28 Cr-Commit-Position: refs/heads/master@{#307964}
6 years ago (2014-12-11 20:38:26 UTC) #9
Sergey Ulanov
On 2014/12/11 20:19:46, kalman wrote: > https://codereview.chromium.org/791343003/diff/1/chrome/browser/extensions/api/messaging/message_service.cc > File chrome/browser/extensions/api/messaging/message_service.cc (right): > > https://codereview.chromium.org/791343003/diff/1/chrome/browser/extensions/api/messaging/message_service.cc#newcode410 > ...
6 years ago (2014-12-11 20:44:30 UTC) #10
not at google - send to devlin
On 2014/12/11 20:44:30, Sergey Ulanov wrote: > On 2014/12/11 20:19:46, kalman wrote: > > > ...
6 years ago (2014-12-11 20:59:01 UTC) #11
Sergey Ulanov
6 years ago (2014-12-11 22:35:42 UTC) #12
Message was sent while issue was closed.
On Thu, Dec 11, 2014 at 12:59 PM, <kalman@chromium.org> wrote:

> Oh right. Weird, code search didn't pick that up.
>

That's because code search only sees code that's compiled on Linux.

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698