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

Issue 1466333004: mac: Fix unit test crash. (Closed)

Created:
5 years ago by erikchen
Modified:
5 years ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews, James Su, shrike
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mac: Fix unit test crash. The test OmniboxPopupViewMacTest was crashing because of an invalid pointer dereference. The root cause was that a base::scoped_nsobject member was captured as an implicit parameter to an Obj-C block, which makes a raw copy of the |this| pointer. I changed the captured parameter to be an Obj-C object, which automatically gets retained/released. BUG=551007, 560482 Committed: https://crrev.com/36c234e5d9647c2cf891ddcd574ea0078162ca79 Cr-Commit-Position: refs/heads/master@{#362184}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm View 1 chunk +2 lines, -1 line 1 comment Download

Messages

Total messages: 9 (3 generated)
erikchen
mark: Please review.
5 years ago (2015-11-23 23:38:19 UTC) #2
erikchen
On 2015/11/23 23:38:19, erikchen wrote: > mark: Please review. mark: Ping?
5 years ago (2015-11-30 18:27:04 UTC) #3
Mark Mentovai
LGTM https://codereview.chromium.org/1466333004/diff/1/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm File chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm (right): https://codereview.chromium.org/1466333004/diff/1/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm#newcode287 chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm:287: NSWindow* popup = popup_.get(); Aha, tricky!
5 years ago (2015-11-30 18:33:59 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1466333004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1466333004/1
5 years ago (2015-11-30 18:37:24 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years ago (2015-11-30 19:13:32 UTC) #7
commit-bot: I haz the power
5 years ago (2015-11-30 19:15:00 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/36c234e5d9647c2cf891ddcd574ea0078162ca79
Cr-Commit-Position: refs/heads/master@{#362184}

Powered by Google App Engine
This is Rietveld 408576698