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

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

Issue 16041004: Cleanup: Remove ScopedGenericObj usage in chrome/. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix compile Created 7 years, 7 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 | « chrome/browser/storage_monitor/udev_util_linux.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/storage_monitor/udev_util_linux.cc
===================================================================
--- chrome/browser/storage_monitor/udev_util_linux.cc (revision 202646)
+++ chrome/browser/storage_monitor/udev_util_linux.cc (working copy)
@@ -8,6 +8,14 @@
namespace chrome {
+void UdevDeleter::operator()(struct udev* udev) {
+ udev_unref(udev);
+}
+
+void UdevDeviceDeleter::operator()(struct udev_device* device) {
+ udev_device_unref(device);
+}
+
std::string GetUdevDevicePropertyValue(struct udev_device* udev_device,
const char* key) {
const char* value = udev_device_get_property_value(udev_device, key);
« no previous file with comments | « chrome/browser/storage_monitor/udev_util_linux.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698