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

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: 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
Index: chrome/browser/storage_monitor/udev_util_linux.cc
===================================================================
--- chrome/browser/storage_monitor/udev_util_linux.cc (revision 202209)
+++ 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);

Powered by Google App Engine
This is Rietveld 408576698