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

Side by Side Diff: chrome/browser/extensions/api/music_manager_private/device_id_mac.cc

Issue 216513002: Replace DCHECK(BrowserThread::CurrentlyOn) with DCHECK_CURRENTLY_ON in extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698