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

Issue 402673003: Move ExtensionHostMsg_PostMessage IPC handling from (Closed)

Created:
6 years, 5 months ago by not at google - send to devlin
Modified:
6 years, 5 months ago
Reviewers:
Lei Zhang, James Cook
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Move ExtensionHostMsg_PostMessage IPC handling from ChromeExtensionWebContentsObserver to ChromeExtensionMessageFilter. BUG=394383 R=jamescook@chromium.org, thestig@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283963

Patch Set 1 #

Total comments: 2

Patch Set 2 : comments, call on correct thread #

Patch Set 3 : use override thread #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -29 lines) Patch
M chrome/browser/extensions/chrome_extension_web_contents_observer.h View 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/extensions/chrome_extension_web_contents_observer.cc View 1 4 chunks +0 lines, -21 lines 0 comments Download
M chrome/browser/renderer_host/chrome_extension_message_filter.h View 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_extension_message_filter.cc View 1 2 7 chunks +12 lines, -3 lines 1 comment Download

Messages

Total messages: 15 (0 generated)
not at google - send to devlin
6 years, 5 months ago (2014-07-17 16:47:50 UTC) #1
James Cook
LGTM. Thanks for taking care of this.
6 years, 5 months ago (2014-07-17 17:05:13 UTC) #2
Lei Zhang
lgtm https://codereview.chromium.org/402673003/diff/1/chrome/browser/extensions/chrome_extension_web_contents_observer.cc File chrome/browser/extensions/chrome_extension_web_contents_observer.cc (right): https://codereview.chromium.org/402673003/diff/1/chrome/browser/extensions/chrome_extension_web_contents_observer.cc#newcode15 chrome/browser/extensions/chrome_extension_web_contents_observer.cc:15: #include "extensions/common/extension_messages.h" This can be removed too.
6 years, 5 months ago (2014-07-17 17:56:42 UTC) #3
not at google - send to devlin
Turns out I also needed to post that operation to the UI thread. The diff ...
6 years, 5 months ago (2014-07-17 19:38:43 UTC) #4
not at google - send to devlin
The CQ bit was checked by kalman@chromium.org
6 years, 5 months ago (2014-07-17 19:38:47 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/402673003/20001
6 years, 5 months ago (2014-07-17 19:41:09 UTC) #6
Lei Zhang
Can't you use ChromeExtensionMessageFilter::OverrideThreadForMessage() to get your messages on the correct thread?
6 years, 5 months ago (2014-07-17 20:48:42 UTC) #7
not at google - send to devlin
On 2014/07/17 20:48:42, Lei Zhang wrote: > Can't you use ChromeExtensionMessageFilter::OverrideThreadForMessage() to get > your ...
6 years, 5 months ago (2014-07-17 20:49:24 UTC) #8
not at google - send to devlin
On 2014/07/17 20:49:24, kalman wrote: > On 2014/07/17 20:48:42, Lei Zhang wrote: > > Can't ...
6 years, 5 months ago (2014-07-17 20:51:49 UTC) #9
not at google - send to devlin
done
6 years, 5 months ago (2014-07-17 20:56:21 UTC) #10
not at google - send to devlin
https://codereview.chromium.org/402673003/diff/40001/chrome/browser/renderer_host/chrome_extension_message_filter.cc File chrome/browser/renderer_host/chrome_extension_message_filter.cc (right): https://codereview.chromium.org/402673003/diff/40001/chrome/browser/renderer_host/chrome_extension_message_filter.cc#newcode174 chrome/browser/renderer_host/chrome_extension_message_filter.cc:174: DCHECK_CURRENTLY_ON(BrowserThread::UI); I couldn't handle it anymore.
6 years, 5 months ago (2014-07-17 20:56:49 UTC) #11
not at google - send to devlin
The CQ bit was checked by kalman@chromium.org
6 years, 5 months ago (2014-07-17 20:56:58 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/402673003/40001
6 years, 5 months ago (2014-07-17 20:58:57 UTC) #13
Lei Zhang
lgtm
6 years, 5 months ago (2014-07-17 20:59:46 UTC) #14
commit-bot: I haz the power
6 years, 5 months ago (2014-07-18 01:30:37 UTC) #15
Message was sent while issue was closed.
Change committed as 283963

Powered by Google App Engine
This is Rietveld 408576698