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

Issue 1898143002: Properly delete the unused policy in password_manager_handler_unittest.cc (Closed)

Created:
4 years, 8 months ago by vabr (Chromium)
Modified:
4 years, 8 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews, dbeam+watch-options_chromium.org, michaelpg+watch-options_chromium.org, vabr+watchlistpasswordmanager_chromium.org, gcasto+watchlist_chromium.org, mkwst+watchlist-passwords_chromium.org, glider+watch_chromium.org, bruening+watch_chromium.org, Jeffrey Yasskin, xunlu
Base URL:
https://chromium.googlesource.com/chromium/src.git@341477_about_flags
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Properly delete the unused policy in password_manager_handler_unittest.cc ui::SelectFilePolicy* passed to the SelectFileDialog creation methods are assumed to be owned by the callee (they should ultimately end up in SelectFileDialog::select_file_policy_, which is a unique_ptr). However, the test factory in password_manager_handler_unittest.cc ignores the policy it gets without deleting it. This CL deletes the ignored policy and removes the leak annotations. BUG=341477 Committed: https://crrev.com/fcbfda57b74a524deb20aa9a2124ce75470eb39f Cr-Commit-Position: refs/heads/master@{#388458}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -15 lines) Patch
M chrome/browser/ui/webui/options/password_manager_handler.cc View 3 chunks +4 lines, -9 lines 0 comments Download
M chrome/browser/ui/webui/options/password_manager_handler_unittest.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M tools/valgrind/memcheck/suppressions.txt View 1 chunk +0 lines, -6 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 14 (7 generated)
vabr (Chromium)
Hi Dan, Could you please take a look? Thanks, Vaclav
4 years, 8 months ago (2016-04-19 15:37:57 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/1898143002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1898143002/1
4 years, 8 months ago (2016-04-19 15:38:19 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-19 16:12:28 UTC) #7
Dan Beam
heh, sneaky lgtm
4 years, 8 months ago (2016-04-19 17:31:28 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1898143002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1898143002/1
4 years, 8 months ago (2016-04-20 09:43:56 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-04-20 09:47:32 UTC) #12
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:22:06 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/fcbfda57b74a524deb20aa9a2124ce75470eb39f
Cr-Commit-Position: refs/heads/master@{#388458}

Powered by Google App Engine
This is Rietveld 408576698