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

Issue 2810873006: DevTools: fix memory issue with layout test (Closed)

Created:
3 years, 8 months ago by chenwilliam
Modified:
3 years, 8 months ago
Reviewers:
dgozman
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, Peter Beverloo, jam, einbinder+watch-test-runner_chromium.org, darin-cc_chromium.org, jochen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: fix memory issue with layout test No longer using unique_ptr to manage the lifetime of devtools_window_ because the Shell object is currently getting deleted twice (once from Shell::CloseAllWindows and once by the unique_ptr). BUG=710356 Review-Url: https://codereview.chromium.org/2810873006 Cr-Commit-Position: refs/heads/master@{#464156} Committed: https://chromium.googlesource.com/chromium/src/+/cfaf69d33ef9a51db827b68edee25553ab39f797

Patch Set 1 #

Total comments: 1

Patch Set 2 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -6 lines) Patch
M content/shell/browser/layout_test/blink_test_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M content/shell/browser/layout_test/blink_test_controller.cc View 1 4 chunks +7 lines, -5 lines 0 comments Download

Messages

Total messages: 9 (5 generated)
chenwilliam
Please take a look. I caused a memory issue from the earlier refactoring and it's ...
3 years, 8 months ago (2017-04-12 01:31:38 UTC) #2
dgozman
lgtm https://codereview.chromium.org/2810873006/diff/1/content/shell/browser/layout_test/blink_test_controller.cc File content/shell/browser/layout_test/blink_test_controller.cc (right): https://codereview.chromium.org/2810873006/diff/1/content/shell/browser/layout_test/blink_test_controller.cc#newcode519 content/shell/browser/layout_test/blink_test_controller.cc:519: devtools_window_->Close(); devtools_window_ = nullptr;
3 years, 8 months ago (2017-04-12 16:59:25 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2810873006/20001
3 years, 8 months ago (2017-04-12 18:26:25 UTC) #6
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 21:31:27 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/cfaf69d33ef9a51db827b68edee2...

Powered by Google App Engine
This is Rietveld 408576698