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

Unified Diff: chrome/browser/storage_monitor/storage_monitor_win_unittest.cc

Issue 168643002: Convert scoped_ptr_malloc -> scoped_ptr, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/storage_monitor/storage_monitor_win_unittest.cc
diff --git a/chrome/browser/storage_monitor/storage_monitor_win_unittest.cc b/chrome/browser/storage_monitor/storage_monitor_win_unittest.cc
index dc638bd76fc79ae272a4544fefbd511b27b2d331..4ce88edd100b5c9563adbd12372ff3c00690549f 100644
--- a/chrome/browser/storage_monitor/storage_monitor_win_unittest.cc
+++ b/chrome/browser/storage_monitor/storage_monitor_win_unittest.cc
@@ -221,8 +221,9 @@ void StorageMonitorWinTest::DoMTPDeviceTest(const base::string16& pnp_device_id,
size_t device_id_size = pnp_device_id.size() * sizeof(base::char16);
size_t size = sizeof(DEV_BROADCAST_DEVICEINTERFACE) + device_id_size;
- scoped_ptr_malloc<DEV_BROADCAST_DEVICEINTERFACE> dev_interface_broadcast(
- static_cast<DEV_BROADCAST_DEVICEINTERFACE*>(malloc(size)));
+ scoped_ptr<DEV_BROADCAST_DEVICEINTERFACE, base::FreeDeleter>
+ dev_interface_broadcast(
+ static_cast<DEV_BROADCAST_DEVICEINTERFACE*>(malloc(size)));
DCHECK(dev_interface_broadcast.get());
ZeroMemory(dev_interface_broadcast.get(), size);
dev_interface_broadcast->dbcc_size = size;
« no previous file with comments | « chrome/browser/extensions/api/networking_private/networking_private_crypto.cc ('k') | chrome/common/chrome_paths_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698