Skip to content

Commit

Permalink
[lens] Fix dangling raw_ptr in LensSidePanelCoordinatorTest
Browse files Browse the repository at this point in the history
Bug: none
Change-Id: Ifde3a5285d28e393e1e3f9817abcfef6c4a35623
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4795533
Commit-Queue: Juan Mojica <[email protected]>
Reviewed-by: Juan Mojica <[email protected]>
Auto-Submit: Greg Thompson <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1185983}
  • Loading branch information
GregTho authored and Chromium LUCI CQ committed Aug 21, 2023
1 parent 12945ce commit 0ae95a7
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ class LensSidePanelCoordinatorTest : public TestWithBrowserView {
AddTab(browser, GURL("about:blank"));
}

void TearDown() override {
lens_side_panel_coordinator_ = nullptr;
TestWithBrowserView::TearDown();
}

SidePanelCoordinator* GetSidePanelCoordinator() {
return SidePanelUtil::GetSidePanelCoordinatorForBrowser(browser());
}
Expand Down

0 comments on commit 0ae95a7

Please sign in to comment.