OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/extensions/api/music_manager_private/device_id.h" | 5 #include "chrome/browser/extensions/api/music_manager_private/device_id.h" |
6 | 6 |
7 #include <CoreFoundation/CoreFoundation.h> | 7 #include <CoreFoundation/CoreFoundation.h> |
8 #include <DiskArbitration/DASession.h> | 8 #include <DiskArbitration/DASession.h> |
9 #include <DiskArbitration/DADisk.h> | 9 #include <DiskArbitration/DADisk.h> |
10 #include <IOKit/IOKitLib.h> | 10 #include <IOKit/IOKitLib.h> |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 base::Bind(callback, raw_device_id)); | 233 base::Bind(callback, raw_device_id)); |
234 } | 234 } |
235 | 235 |
236 } // namespace | 236 } // namespace |
237 | 237 |
238 namespace extensions { | 238 namespace extensions { |
239 namespace api { | 239 namespace api { |
240 | 240 |
241 // static | 241 // static |
242 void DeviceId::GetRawDeviceId(const IdCallback& callback) { | 242 void DeviceId::GetRawDeviceId(const IdCallback& callback) { |
243 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); | 243 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
244 | 244 |
245 content::BrowserThread::PostTask( | 245 content::BrowserThread::PostTask( |
246 content::BrowserThread::FILE, | 246 content::BrowserThread::FILE, |
247 FROM_HERE, | 247 FROM_HERE, |
248 base::Bind(GetRawDeviceIdImpl, | 248 base::Bind(GetRawDeviceIdImpl, |
249 base::Bind(DeviceId::IsValidMacAddress), | 249 base::Bind(DeviceId::IsValidMacAddress), |
250 callback)); | 250 callback)); |
251 } | 251 } |
252 | 252 |
253 } // namespace api | 253 } // namespace api |
254 } // namespace extensions | 254 } // namespace extensions |
OLD | NEW |