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

Unified Diff: device/hid/hid_service_win.cc

Issue 169193002: Convert scoped_ptr_malloc -> scoped_ptr, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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
« no previous file with comments | « device/hid/hid_connection_mac.h ('k') | google_apis/cup/client_update_protocol_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/hid/hid_service_win.cc
diff --git a/device/hid/hid_service_win.cc b/device/hid/hid_service_win.cc
index cf9db15bf30901d85adb4c5e76ca6cc111dd1a8e..973398fe4238fecd2849b384fcf5bcf3a85f5415 100644
--- a/device/hid/hid_service_win.cc
+++ b/device/hid/hid_service_win.cc
@@ -89,9 +89,9 @@ bool HidServiceWin::Enumerate() {
&required_size,
NULL);
- scoped_ptr_malloc<SP_DEVICE_INTERFACE_DETAIL_DATA_A>
+ scoped_ptr<SP_DEVICE_INTERFACE_DETAIL_DATA_A, base::FreeDeleter>
device_interface_detail_data(
- reinterpret_cast<SP_DEVICE_INTERFACE_DETAIL_DATA_A*>(
+ static_cast<SP_DEVICE_INTERFACE_DETAIL_DATA_A*>(
malloc(required_size)));
device_interface_detail_data->cbSize =
sizeof(SP_DEVICE_INTERFACE_DETAIL_DATA_A);
« no previous file with comments | « device/hid/hid_connection_mac.h ('k') | google_apis/cup/client_update_protocol_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698