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

Issue 377833009: Monitor Profile destruction from ChromeExtensionMessageFilter. (Closed)

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

Description

Monitor Profile destruction from ChromeExtensionMessageFilter. BUG=391861 R=asargent@chromium.org TBR=jochen@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282109

Patch Set 1 #

Patch Set 2 : detach from thread #

Patch Set 3 : delete on correct thread #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -12 lines) Patch
M chrome/browser/renderer_host/chrome_extension_message_filter.h View 1 2 4 chunks +15 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/chrome_extension_message_filter.cc View 1 2 8 chunks +51 lines, -10 lines 2 comments Download

Messages

Total messages: 20 (0 generated)
not at google - send to devlin
6 years, 5 months ago (2014-07-08 20:07:52 UTC) #1
asargent_no_longer_on_chrome
lgtm
6 years, 5 months ago (2014-07-08 23:55:55 UTC) #2
not at google - send to devlin
The CQ bit was checked by kalman@chromium.org
6 years, 5 months ago (2014-07-09 00:10:41 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/377833009/1
6 years, 5 months ago (2014-07-09 00:15:07 UTC) #4
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 5 months ago (2014-07-09 08:17:25 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-09 08:20:15 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/78763)
6 years, 5 months ago (2014-07-09 08:20:15 UTC) #7
not at google - send to devlin
TBR-ing jochen.
6 years, 5 months ago (2014-07-09 15:50:39 UTC) #8
not at google - send to devlin
The CQ bit was checked by kalman@chromium.org
6 years, 5 months ago (2014-07-09 15:50:42 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/377833009/1
6 years, 5 months ago (2014-07-09 15:52:27 UTC) #10
not at google - send to devlin
The CQ bit was checked by kalman@chromium.org
6 years, 5 months ago (2014-07-09 16:23:21 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/377833009/20001
6 years, 5 months ago (2014-07-09 16:23:37 UTC) #12
not at google - send to devlin
https://codereview.chromium.org/377833009/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/377833009/diff/40001/chrome/browser/renderer_host/chrome_extension_message_filter.cc#newcode126 chrome/browser/renderer_host/chrome_extension_message_filter.cc:126: if (BrowserThread::CurrentlyOn(BrowserThread::UI)) { Antony - I needed to add ...
6 years, 5 months ago (2014-07-09 17:09:42 UTC) #13
not at google - send to devlin
The CQ bit was checked by kalman@chromium.org
6 years, 5 months ago (2014-07-09 17:09:44 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/377833009/40001
6 years, 5 months ago (2014-07-09 17:11:24 UTC) #15
asargent_no_longer_on_chrome
https://codereview.chromium.org/377833009/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/377833009/diff/40001/chrome/browser/renderer_host/chrome_extension_message_filter.cc#newcode126 chrome/browser/renderer_host/chrome_extension_message_filter.cc:126: if (BrowserThread::CurrentlyOn(BrowserThread::UI)) { On 2014/07/09 17:09:41, kalman wrote: > ...
6 years, 5 months ago (2014-07-09 17:58:39 UTC) #16
commit-bot: I haz the power
Change committed as 282109
6 years, 5 months ago (2014-07-09 20:26:49 UTC) #17
not at google - send to devlin
coming back to this to merge, I'm a little surprised there wasn't a problem with ...
6 years, 4 months ago (2014-08-08 17:50:07 UTC) #18
asargent_no_longer_on_chrome
Huh - I guess this works because of the custom BrowserMessageFilterTraits that BrowserMessageFilter uses with ...
6 years, 4 months ago (2014-08-08 18:01:17 UTC) #19
not at google - send to devlin
6 years, 4 months ago (2014-08-08 19:43:35 UTC) #20
Message was sent while issue was closed.
On 2014/08/08 18:01:17, Antony Sargent wrote:
> Huh - I guess this works because of the custom BrowserMessageFilterTraits
> that BrowserMessageFilter uses with RefCountedThreadSafe, which instead of
> getting the default behavior of  DefaultRefCountedThreadSafeTraits that
> just calls DeleteInternal (which does "delete this"), it instead calls back
> our OnDestruct where we do the same thing. (I guess we have this because
> some BrowserMessageFilter's need to do more complicated work before
> destructing themselves?)

oh how odd! but that explains it. ok I feel better about this now, thanks.

> 
> 
> 
> On Fri, Aug 8, 2014 at 10:50 AM, <mailto:kalman@chromium.org> wrote:
> 
> > coming back to this to merge, I'm a little surprised there wasn't a
> > problem with
> > double-deletion, since profile destruction is calling "delete this" but
> > it's
> > refcounted, so, surely elsewhere the refcounting is being deleted?
> >
> > well... nothing has complained so far. huh.
> >
> > https://codereview.chromium.org/377833009/
> >
> 
> To unsubscribe from this group and stop receiving emails from it, send an
email
> to mailto:chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698