~MusicManagerPrivateGetDeviceIdFunction() {
}
-bool MusicManagerPrivateGetDeviceIdFunction::RunImpl() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+bool MusicManagerPrivateGetDeviceIdFunction::RunAsync() {
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
DeviceId::GetDeviceId(
this->extension_id(),
base::Bind(
void MusicManagerPrivateGetDeviceIdFunction::DeviceIdCallback(
const std::string& device_id) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
bool response;
if (device_id.empty()) {
SetError(kDeviceIdNotSupported);