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

Issue 10382229: status_icons: Change StatusTray to use ScopedVector. (Closed)

Created:
8 years, 7 months ago by tfarina
Modified:
8 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : fix unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -19 lines) Patch
M chrome/browser/status_icons/status_tray.h View 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/status_icons/status_tray.cc View 1 2 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/status_icons/status_tray_win.cc View 2 chunks +4 lines, -5 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
tfarina
8 years, 7 months ago (2012-05-17 23:23:02 UTC) #1
Andrew T Wilson (Slow)
On 2012/05/17 23:23:02, tfarina wrote: LGTM, but looks like some test failures?
8 years, 7 months ago (2012-05-17 23:42:01 UTC) #2
tfarina
On Thu, May 17, 2012 at 8:42 PM, <atwilson@chromium.org> wrote: > On 2012/05/17 23:23:02, tfarina ...
8 years, 7 months ago (2012-05-17 23:55:03 UTC) #3
Andrew T Wilson (Slow)
I guess ScopedVector.erase() frees the object so you don't have to have RemoveStatusIcon call delete ...
8 years, 7 months ago (2012-05-18 00:06:17 UTC) #4
tfarina
On Thu, May 17, 2012 at 9:06 PM, <atwilson@chromium.org> wrote: > I guess ScopedVector.erase() frees ...
8 years, 7 months ago (2012-05-18 00:15:49 UTC) #5
tfarina
8 years, 7 months ago (2012-05-18 00:52:16 UTC) #6
On 2012/05/18 00:06:17, Andrew T Wilson wrote:
> I guess ScopedVector.erase() frees the object so you don't have to have
> RemoveStatusIcon call delete any more.

Patch set 2 fixes the unittest. I went with just removing the "delete *i;".

Powered by Google App Engine
This is Rietveld 408576698