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

Issue 1143333008: Getting rid of more webview memory leaks. (Closed)

Created:
5 years, 6 months ago by paulmeyer
Modified:
5 years, 6 months 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

This patch implements a way to register callbacks for when a GuestView is destroyed in GuestViewManager. This new callback system is used to do some memory cleanup in WebViewGuest when each view is destroyed, instead of only when the embedder is destroyed. BUG=355360 Committed: https://crrev.com/598af4c2aa61d865e831aeeea47d0cc126d622fe Cr-Commit-Position: refs/heads/master@{#333782}

Patch Set 1 #

Total comments: 28

Patch Set 2 : Addressed comments. #

Total comments: 8

Patch Set 3 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -62 lines) Patch
M components/guest_view/browser/guest_view_base.h View 1 2 chunks +7 lines, -6 lines 0 comments Download
M components/guest_view/browser/guest_view_base.cc View 1 2 2 chunks +10 lines, -3 lines 0 comments Download
M components/guest_view/browser/guest_view_manager.h View 1 2 6 chunks +44 lines, -7 lines 0 comments Download
M components/guest_view/browser/guest_view_manager.cc View 1 4 chunks +67 lines, -2 lines 0 comments Download
M components/guest_view/browser/guest_view_message_filter.h View 1 2 chunks +2 lines, -3 lines 0 comments Download
M components/guest_view/browser/guest_view_message_filter.cc View 1 2 chunks +8 lines, -0 lines 0 comments Download
M components/guest_view/browser/test_guest_view_manager.h View 1 1 chunk +7 lines, -3 lines 0 comments Download
M components/guest_view/browser/test_guest_view_manager.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/guest_view/common/guest_view_messages.h View 1 chunk +6 lines, -0 lines 0 comments Download
M extensions/browser/api/web_request/web_request_api.h View 1 chunk +0 lines, -1 line 0 comments Download
M extensions/browser/api/web_request/web_request_api.cc View 2 chunks +1 line, -2 lines 0 comments Download
M extensions/browser/guest_view/web_view/web_view_guest.h View 2 chunks +4 lines, -1 line 0 comments Download
M extensions/browser/guest_view/web_view/web_view_guest.cc View 1 4 chunks +33 lines, -26 lines 0 comments Download
M extensions/renderer/guest_view/guest_view_internal_custom_bindings.cc View 1 1 chunk +15 lines, -7 lines 0 comments Download
M extensions/renderer/resources/guest_view/guest_view_container.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 31 (10 generated)
paulmeyer
5 years, 6 months ago (2015-06-05 20:05:02 UTC) #2
lazyboy
Some comments. High level issues found so far: 1) The map of map of vector ...
5 years, 6 months ago (2015-06-05 23:09:56 UTC) #3
Fady Samuel
I'll let Istiaque do most of the reviewing. Please speak to Xi and make sure ...
5 years, 6 months ago (2015-06-06 01:22:54 UTC) #5
paulmeyer
On 2015/06/06 01:22:54, Fady Samuel wrote: > I'll let Istiaque do most of the reviewing. ...
5 years, 6 months ago (2015-06-08 17:53:43 UTC) #6
paulmeyer
ptal. https://codereview.chromium.org/1143333008/diff/1/components/guest_view/browser/guest_view_base.cc File components/guest_view/browser/guest_view_base.cc (right): https://codereview.chromium.org/1143333008/diff/1/components/guest_view/browser/guest_view_base.cc#newcode113 components/guest_view/browser/guest_view_base.cc:113: GuestViewManager::FromBrowserContext(web_contents()->GetBrowserContext())-> On 2015/06/05 23:09:55, lazyboy wrote: > -> ...
5 years, 6 months ago (2015-06-08 17:53:59 UTC) #7
Fady Samuel
One nit + Please look at cleaning up the WebViewContentScriptManager state! https://codereview.chromium.org/1143333008/diff/40001/components/guest_view/browser/guest_view_manager.h File components/guest_view/browser/guest_view_manager.h (right): ...
5 years, 6 months ago (2015-06-08 20:25:57 UTC) #9
lazyboy
Looks good, I have one confusion. https://chromiumcodereview.appspot.com/1143333008/diff/40001/components/guest_view/browser/guest_view_base.cc File components/guest_view/browser/guest_view_base.cc (right): https://chromiumcodereview.appspot.com/1143333008/diff/40001/components/guest_view/browser/guest_view_base.cc#newcode122 components/guest_view/browser/guest_view_base.cc:122: // This observer ...
5 years, 6 months ago (2015-06-09 14:19:32 UTC) #10
paulmeyer
On 2015/06/09 14:19:32, lazyboy wrote: > Looks good, I have one confusion. > > https://chromiumcodereview.appspot.com/1143333008/diff/40001/components/guest_view/browser/guest_view_base.cc ...
5 years, 6 months ago (2015-06-09 14:47:16 UTC) #11
paulmeyer
ptal. https://chromiumcodereview.appspot.com/1143333008/diff/40001/components/guest_view/browser/guest_view_base.cc File components/guest_view/browser/guest_view_base.cc (right): https://chromiumcodereview.appspot.com/1143333008/diff/40001/components/guest_view/browser/guest_view_base.cc#newcode122 components/guest_view/browser/guest_view_base.cc:122: // This observer ensures that the GuestViewBase destroys ...
5 years, 6 months ago (2015-06-09 14:49:42 UTC) #12
lazyboy
LGTM
5 years, 6 months ago (2015-06-09 14:50:42 UTC) #13
paulmeyer
+kalman@ for extensions/
5 years, 6 months ago (2015-06-09 14:52:07 UTC) #15
not at google - send to devlin
rubberstamp lgtm, unless you want me to do more than rubberstamp it.
5 years, 6 months ago (2015-06-09 20:30:19 UTC) #16
paulmeyer
On 2015/06/09 20:30:19, kalman wrote: > rubberstamp lgtm, unless you want me to do more ...
5 years, 6 months ago (2015-06-09 20:33:18 UTC) #17
paulmeyer
+kenrb@ for guest_view_messages.h
5 years, 6 months ago (2015-06-09 20:33:44 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1143333008/60001
5 years, 6 months ago (2015-06-10 12:51:28 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1143333008/60001
5 years, 6 months ago (2015-06-10 12:52:31 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-10 14:12:40 UTC) #26
kenrb
ipc lgtm
5 years, 6 months ago (2015-06-10 20:04:09 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1143333008/60001
5 years, 6 months ago (2015-06-10 20:06:26 UTC) #29
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years, 6 months ago (2015-06-10 20:12:04 UTC) #30
commit-bot: I haz the power
5 years, 6 months ago (2015-06-10 20:13:10 UTC) #31
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/598af4c2aa61d865e831aeeea47d0cc126d622fe
Cr-Commit-Position: refs/heads/master@{#333782}

Powered by Google App Engine
This is Rietveld 408576698