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

Side by Side Diff: device/base/device_info_query_win.cc

Issue 2417043002: Move device/core files to device/base directory. (Closed)
Patch Set: Fix ChromeOS build Created 4 years, 2 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/base/device_info_query_win.h ('k') | device/base/device_monitor_linux.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/core/device_info_query_win.h" 5 #include "device/base/device_info_query_win.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
11 11
12 namespace device { 12 namespace device {
13 13
14 DeviceInfoQueryWin::DeviceInfoQueryWin() 14 DeviceInfoQueryWin::DeviceInfoQueryWin()
15 : device_info_list_(SetupDiCreateDeviceInfoList(nullptr, nullptr)) { 15 : device_info_list_(SetupDiCreateDeviceInfoList(nullptr, nullptr)) {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 // Shrink |property_buffer| down to its correct size. 59 // Shrink |property_buffer| down to its correct size.
60 size_t eos = property_buffer->find('\0'); 60 size_t eos = property_buffer->find('\0');
61 if (eos != std::string::npos) 61 if (eos != std::string::npos)
62 property_buffer->resize(eos); 62 property_buffer->resize(eos);
63 63
64 return true; 64 return true;
65 } 65 }
66 66
67 } // namespace device 67 } // namespace device
OLDNEW
« no previous file with comments | « device/base/device_info_query_win.h ('k') | device/base/device_monitor_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698