summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2014-10-23 17:21:15 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-24 00:21:27 +0000
commit62675d9fb31fb8cedc40f68e78e8445a74f362e7 (patch)
tree7ba05b92cf1a1075f9dfc1c11171e96ce683cf3d /components
parent55196a2b4a303ddbc46f2b63b58c725f80710c9c (diff)
downloadchromium_src-62675d9fb31fb8cedc40f68e78e8445a74f362e7.zip
chromium_src-62675d9fb31fb8cedc40f68e78e8445a74f362e7.tar.gz
chromium_src-62675d9fb31fb8cedc40f68e78e8445a74f362e7.tar.bz2
Cleanup: Merge device/udev_linux/udev.{cc,h} into device/udev_linux/scoped_udev.h.
- Update header files elsewhere. - Use ScopedUdev*Ptr classes in more places. BUG=415212 Review URL: https://codereview.chromium.org/666653002 Cr-Commit-Position: refs/heads/master@{#300999}
Diffstat (limited to 'components')
-rw-r--r--components/storage_monitor/storage_monitor_linux.cc2
-rw-r--r--components/storage_monitor/udev_util_linux.cc4
-rw-r--r--components/storage_monitor/udev_util_linux.h6
3 files changed, 6 insertions, 6 deletions
diff --git a/components/storage_monitor/storage_monitor_linux.cc b/components/storage_monitor/storage_monitor_linux.cc
index 254fd5d..6b57f5c 100644
--- a/components/storage_monitor/storage_monitor_linux.cc
+++ b/components/storage_monitor/storage_monitor_linux.cc
@@ -26,7 +26,7 @@
#include "components/storage_monitor/storage_info.h"
#include "components/storage_monitor/udev_util_linux.h"
#include "device/media_transfer_protocol/media_transfer_protocol_manager.h"
-#include "device/udev_linux/udev.h"
+#include "device/udev_linux/scoped_udev.h"
using content::BrowserThread;
diff --git a/components/storage_monitor/udev_util_linux.cc b/components/storage_monitor/udev_util_linux.cc
index 5a3a117..154f11c 100644
--- a/components/storage_monitor/udev_util_linux.cc
+++ b/components/storage_monitor/udev_util_linux.cc
@@ -5,11 +5,11 @@
#include "components/storage_monitor/udev_util_linux.h"
#include "base/files/file_path.h"
-#include "device/udev_linux/udev.h"
+#include "device/udev_linux/scoped_udev.h"
namespace storage_monitor {
-std::string GetUdevDevicePropertyValue(struct udev_device* udev_device,
+std::string GetUdevDevicePropertyValue(udev_device* udev_device,
const char* key) {
const char* value = udev_device_get_property_value(udev_device, key);
return value ? value : std::string();
diff --git a/components/storage_monitor/udev_util_linux.h b/components/storage_monitor/udev_util_linux.h
index f00048b..76b59ad 100644
--- a/components/storage_monitor/udev_util_linux.h
+++ b/components/storage_monitor/udev_util_linux.h
@@ -5,12 +5,12 @@
#ifndef COMPONENTS_STORAGE_MONITOR_UDEV_UTIL_LINUX_H_
#define COMPONENTS_STORAGE_MONITOR_UDEV_UTIL_LINUX_H_
-#include <libudev.h>
-
#include <string>
#include "base/memory/scoped_ptr.h"
+struct udev_device;
+
namespace base {
class FilePath;
}
@@ -19,7 +19,7 @@ namespace storage_monitor {
// Wrapper function for udev_device_get_property_value() that also checks for
// valid but empty values.
-std::string GetUdevDevicePropertyValue(struct udev_device* udev_device,
+std::string GetUdevDevicePropertyValue(udev_device* udev_device,
const char* key);
// Helper for udev_device_new_from_syspath()/udev_device_get_property_value()