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

Side by Side Diff: chrome/browser/extensions/api/music_manager_private/device_id_linux.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, 8 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 <sys/socket.h> // Must be included before ifaddrs.h. 7 #include <sys/socket.h> // Must be included before ifaddrs.h.
8 #include <ifaddrs.h> 8 #include <ifaddrs.h>
9 #include <net/if.h> 9 #include <net/if.h>
10 #include <sys/ioctl.h> 10 #include <sys/ioctl.h>
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 base::Bind(callback, raw_device_id)); 185 base::Bind(callback, raw_device_id));
186 } 186 }
187 187
188 } // namespace 188 } // namespace
189 189
190 namespace extensions { 190 namespace extensions {
191 namespace api { 191 namespace api {
192 192
193 // static 193 // static
194 void DeviceId::GetRawDeviceId(const IdCallback& callback) { 194 void DeviceId::GetRawDeviceId(const IdCallback& callback) {
195 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); 195 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
196 196
197 content::BrowserThread::PostTask( 197 content::BrowserThread::PostTask(
198 content::BrowserThread::FILE, 198 content::BrowserThread::FILE,
199 FROM_HERE, 199 FROM_HERE,
200 base::Bind(GetRawDeviceIdImpl, 200 base::Bind(GetRawDeviceIdImpl,
201 base::Bind(DeviceId::IsValidMacAddress), 201 base::Bind(DeviceId::IsValidMacAddress),
202 callback)); 202 callback));
203 } 203 }
204 204
205 } // namespace api 205 } // namespace api
206 } // namespace extensions 206 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698