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

Side by Side Diff: device/udev_linux/udev.cc

Issue 982883004: Move GetUdevDevicePropertyValue from components/storage_monitor to device/udev_linux and rename to … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert incorrect change in chromeos Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « device/udev_linux/udev.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "device/udev_linux/udev.h" 5 #include "device/udev_linux/udev.h"
6 6
7 #include "device/udev_linux/udev_loader.h" 7 #include "device/udev_linux/udev_loader.h"
8 8
9 namespace device { 9 namespace device {
10 10
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 } 139 }
140 140
141 void udev_set_log_priority(struct udev* udev, int priority) { 141 void udev_set_log_priority(struct udev* udev, int priority) {
142 return UdevLoader::Get()->udev_set_log_priority(udev, priority); 142 return UdevLoader::Get()->udev_set_log_priority(udev, priority);
143 } 143 }
144 144
145 void udev_unref(udev* udev) { 145 void udev_unref(udev* udev) {
146 UdevLoader::Get()->udev_unref(udev); 146 UdevLoader::Get()->udev_unref(udev);
147 } 147 }
148 148
149 std::string UdevDeviceGetPropertyValue(udev_device* udev_device,
150 const char* key) {
151 const char* value = device::udev_device_get_property_value(udev_device, key);
152 return value ? value : std::string();
153 }
154
149 } // namespace device 155 } // namespace device
OLDNEW
« no previous file with comments | « device/udev_linux/udev.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698