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

Issue 1323943011: Fix memory leak of PreviewModeClient in PDF (Closed)

Created:
5 years, 3 months ago by raymes
Modified:
5 years, 3 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews, chrome-apps-syd-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 memory leak of PreviewModeClient in PDF Previously, in print preview, we would construct a new PreviewModeClient and pass it to the PDFEngine, however the PDFEngine does not maintain ownership of the client passed in. Instead OutOfProcessInstance should maintain ownership which is fixed by this CL. BUG=522286 Committed: https://crrev.com/cf7b9bfd81a7f2690c80deb46d35833acb692975 Cr-Commit-Position: refs/heads/master@{#347652}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M pdf/out_of_process_instance.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M pdf/out_of_process_instance.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 17 (6 generated)
raymes
5 years, 3 months ago (2015-09-07 02:51:16 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1323943011/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1323943011/1
5 years, 3 months ago (2015-09-07 02:51:30 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-07 03:36:12 UTC) #6
Lei Zhang
https://codereview.chromium.org/1323943011/diff/1/pdf/out_of_process_instance.h File pdf/out_of_process_instance.h (right): https://codereview.chromium.org/1323943011/diff/1/pdf/out_of_process_instance.h#newcode264 pdf/out_of_process_instance.h:264: scoped_ptr<PreviewModeClient> preview_client_; Doesn't member destruction go bottom up? i.e. ...
5 years, 3 months ago (2015-09-07 19:31:46 UTC) #7
raymes
https://codereview.chromium.org/1323943011/diff/1/pdf/out_of_process_instance.h File pdf/out_of_process_instance.h (right): https://codereview.chromium.org/1323943011/diff/1/pdf/out_of_process_instance.h#newcode264 pdf/out_of_process_instance.h:264: scoped_ptr<PreviewModeClient> preview_client_; On 2015/09/07 19:31:46, Lei Zhang wrote: > ...
5 years, 3 months ago (2015-09-07 23:59:00 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1323943011/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1323943011/20001
5 years, 3 months ago (2015-09-07 23:59:13 UTC) #10
Lei Zhang
lgtm
5 years, 3 months ago (2015-09-08 00:23:58 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-08 00:52:15 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1323943011/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1323943011/20001
5 years, 3 months ago (2015-09-08 01:07:14 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 3 months ago (2015-09-08 01:11:20 UTC) #16
commit-bot: I haz the power
5 years, 3 months ago (2015-09-08 01:12:03 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/cf7b9bfd81a7f2690c80deb46d35833acb692975
Cr-Commit-Position: refs/heads/master@{#347652}

Powered by Google App Engine
This is Rietveld 408576698