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

Issue 2907953002: Fix new/free mismatch in ActiveTabTest.DelegateIsSet (Closed)

Created:
3 years, 6 months ago by Lei Zhang
Modified:
3 years, 6 months ago
Reviewers:
Ivan Šandrk
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix new/free mismatch in ActiveTabTest.DelegateIsSet As found by ASAN. The error is from r475128. BUG=717945 TBR=isandrk@chromium.org Review-Url: https://codereview.chromium.org/2907953002 Cr-Commit-Position: refs/heads/master@{#475218} Committed: https://chromium.googlesource.com/chromium/src/+/3a178ffe803c79a0f8a44750c67f17c3cde5a9d6

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M chrome/browser/extensions/active_tab_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (7 generated)
Lei Zhang
TBR
3 years, 6 months ago (2017-05-27 02:00:29 UTC) #5
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/2907953002/1
3 years, 6 months ago (2017-05-27 02:00:49 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/3a178ffe803c79a0f8a44750c67f17c3cde5a9d6
3 years, 6 months ago (2017-05-27 02:05:32 UTC) #10
Ivan Šandrk
3 years, 6 months ago (2017-05-29 10:00:31 UTC) #11
Message was sent while issue was closed.
Thank you for fixing this Lei!

On 2017/05/27 01:19:42, Lei Zhang wrote:
> free(ActiveTabPermissionGranter::SetPlatformDelegate(nullptr));
> This should be a delete. Have you considered unique_ptrs?

Actually did, this way it seemed simpler to me (I've seen this pattern of
"leaked" pointers elsewhere).

Powered by Google App Engine
This is Rietveld 408576698