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

Issue 11743008: Clean up: Use scoped_ptr<Foo[]> instead of scoped_array<Foo> in PortableDeviceWatcherWin::Enumerate… (Closed)

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

Description

Clean up: Use scoped_ptr<Foo[]> instead of scoped_array<Foo> in PortableDeviceWatcherWin::EnumerateAttachedDevice() and also free the associated memory by calling CoTaskMemFree function. BUG=none TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175071

Patch Set 1 #

Total comments: 3

Patch Set 2 : Addressed review comment #

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

Messages

Total messages: 8 (0 generated)
kmadhusu
cpu@: I have added you as a reviewer to review the windows specific code. PTAL. ...
7 years, 11 months ago (2013-01-03 00:25:52 UTC) #1
cpu_(ooo_6.6-7.5)
lgtm
7 years, 11 months ago (2013-01-03 21:01:21 UTC) #2
kmadhusu
thestig: Can you do the OWNER's check? Thanks.
7 years, 11 months ago (2013-01-03 21:09:36 UTC) #3
Lei Zhang
https://codereview.chromium.org/11743008/diff/1/chrome/browser/system_monitor/portable_device_watcher_win.cc File chrome/browser/system_monitor/portable_device_watcher_win.cc (right): https://codereview.chromium.org/11743008/diff/1/chrome/browser/system_monitor/portable_device_watcher_win.cc#newcode423 chrome/browser/system_monitor/portable_device_watcher_win.cc:423: CoTaskMemFree(pnp_device_ids[index]); On 2013/01/03 00:25:52, kmadhusu wrote: > As per ...
7 years, 11 months ago (2013-01-03 21:15:26 UTC) #4
kmadhusu
thestig@: Addressed review comment. PTAL. Thanks. https://codereview.chromium.org/11743008/diff/1/chrome/browser/system_monitor/portable_device_watcher_win.cc File chrome/browser/system_monitor/portable_device_watcher_win.cc (right): https://codereview.chromium.org/11743008/diff/1/chrome/browser/system_monitor/portable_device_watcher_win.cc#newcode423 chrome/browser/system_monitor/portable_device_watcher_win.cc:423: CoTaskMemFree(pnp_device_ids[index]); On 2013/01/03 ...
7 years, 11 months ago (2013-01-03 21:36:21 UTC) #5
Lei Zhang
lgtm
7 years, 11 months ago (2013-01-03 21:40:18 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/11743008/7001
7 years, 11 months ago (2013-01-03 21:48:46 UTC) #7
commit-bot: I haz the power
7 years, 11 months ago (2013-01-04 01:22:32 UTC) #8
Message was sent while issue was closed.
Change committed as 175071

Powered by Google App Engine
This is Rietveld 408576698