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

Issue 566863002: Remove deprecated extension notification from ProcessManager. (Closed)

Created:
6 years, 3 months ago by Jitu( very slow this week)
Modified:
6 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Remove deprecated extension notification from ProcessManager. This patch used EntensionRegistryObserver instead of DEPRECATED extension NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED removed now. BUG=411568 Committed: https://crrev.com/1bd52ffda33ffc5614dab8e3f3d677f0a528e763 Cr-Commit-Position: refs/heads/master@{#294799}

Patch Set 1 #

Patch Set 2 : Fix the errors for untitest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -46 lines) Patch
M extensions/browser/process_manager.h View 3 chunks +13 lines, -1 line 0 comments Download
M extensions/browser/process_manager.cc View 4 chunks +27 lines, -33 lines 0 comments Download
M extensions/browser/process_manager_unittest.cc View 1 2 chunks +0 lines, -12 lines 0 comments Download

Messages

Total messages: 26 (9 generated)
Jitu( very slow this week)
PTAL
6 years, 3 months ago (2014-09-12 13:09:40 UTC) #2
Bernhard Bauer
LGTM, but please update the title to remove the [WIP] tag. Also, I'm not an ...
6 years, 3 months ago (2014-09-12 13:22:54 UTC) #3
Jitu( very slow this week)
Dear Ken, PTAL ...
6 years, 3 months ago (2014-09-12 13:31:01 UTC) #5
Ken Rockot(use gerrit already)
lgtm
6 years, 3 months ago (2014-09-12 17:03:45 UTC) #8
limasdf
@rockot, Could you run memory test? Because my try was failed because of Linux Asan ...
6 years, 3 months ago (2014-09-12 23:12:47 UTC) #10
Ken Rockot(use gerrit already)
On 2014/09/12 23:12:47, limasdf wrote: > @rockot, Could you run memory test? > > Because ...
6 years, 3 months ago (2014-09-12 23:50:49 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/566863002/20001
6 years, 3 months ago (2014-09-15 09:17:35 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/4347)
6 years, 3 months ago (2014-09-15 09:34:00 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/566863002/20001
6 years, 3 months ago (2014-09-15 10:33:07 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001) as 8bc90bb710835ff610b7a0641f1b776754ac3fec
6 years, 3 months ago (2014-09-15 10:34:33 UTC) #18
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/1bd52ffda33ffc5614dab8e3f3d677f0a528e763 Cr-Commit-Position: refs/heads/master@{#294799}
6 years, 3 months ago (2014-09-15 10:36:43 UTC) #19
Alexander Potapenko
On 2014/09/15 10:36:43, I haz the power (commit-bot) wrote: > Patchset 2 (id:??) landed as ...
6 years, 3 months ago (2014-09-15 11:52:46 UTC) #20
Jitu( very slow this week)
On 2014/09/15 11:52:46, Alexander Potapenko wrote: > On 2014/09/15 10:36:43, I haz the power (commit-bot) ...
6 years, 3 months ago (2014-09-15 12:01:13 UTC) #21
Alexander Potapenko
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/570073002/ by glider@chromium.org. ...
6 years, 3 months ago (2014-09-15 12:03:20 UTC) #22
Bernhard Bauer
On 2014/09/15 12:01:13, Jitu wrote: > On 2014/09/15 11:52:46, Alexander Potapenko wrote: > > On ...
6 years, 3 months ago (2014-09-15 13:47:17 UTC) #23
Jitu( very slow this week)
On 2014/09/15 13:47:17, Bernhard Bauer wrote: > On 2014/09/15 12:01:13, Jitu wrote: > > On ...
6 years, 3 months ago (2014-09-15 13:49:47 UTC) #24
limasdf
6 years, 3 months ago (2014-09-15 14:58:41 UTC) #25
Message was sent while issue was closed.
On 2014/09/15 13:49:47, Jitu wrote:
> On 2014/09/15 13:47:17, Bernhard Bauer wrote:
> > On 2014/09/15 12:01:13, Jitu wrote:
> > > On 2014/09/15 11:52:46, Alexander Potapenko wrote:
> > > > On 2014/09/15 10:36:43, I haz the power (commit-bot) wrote:
> > > > > Patchset 2 (id:??) landed as
> > > > > https://crrev.com/1bd52ffda33ffc5614dab8e3f3d677f0a528e763
> > > > > Cr-Commit-Position: refs/heads/master@{#294799}
> > > > 
> > > > This CL has introduced a use-after-free in
> > > > extensions::ExtensionRegistry::RemoveObserver
> > > >
> > >
> >
>
(http://build.chromium.org/p/chromium.memory.fyi/builders/Linux%20Tests%20%28T...),
> > > > I'm about to revert.
> > > 
> > > Dear Alexander,
> > > 
> > > How to run the memory tool on this. 
> > > Please guide me.
> > 
> > Why did you commit this in the first place without running ASAN tests, after
> you
> > were explicitly asked to do so? If you don't know how to run memory tests,
ask
> > someone, and do it *before* you commit a CL.
> > 
> > FWIW, comment #11 tells you how to enable ASAN. Also, the link above is
output
> > from a memory test, which should give you some information too.
> 
> Okay ... i will take care this in future.
> 
> I will try to fix this after running ASAN tests.

:: How to run the memory tool on this. 
The best way is to run trybot explicitly. But this requires a permission. to get
the permission you need some commit first.
Second way is to run ASan on local PC. See
http://www.chromium.org/developers/testing/addresssanitizer

About the problem.
the RemoveObserver should be called when a profile is shutdown, destructor of
ProcessManager is not a point that profile is shutdown. that's why we have a
ExtesnionRegistryObserver leak.

Perhaps, ChromeProfessManagerDelegate::OnProfileDestroyed is right point.
https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/ext...

Powered by Google App Engine
This is Rietveld 408576698