Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / extensions / api / music_manager_private / music_manager_private_api.cc
index 5cca660..b51ec55 100644 (file)
@@ -26,8 +26,8 @@ MusicManagerPrivateGetDeviceIdFunction::
     ~MusicManagerPrivateGetDeviceIdFunction() {
 }
 
-bool MusicManagerPrivateGetDeviceIdFunction::RunImpl() {
-  DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+bool MusicManagerPrivateGetDeviceIdFunction::RunAsync() {
+  DCHECK_CURRENTLY_ON(BrowserThread::UI);
   DeviceId::GetDeviceId(
       this->extension_id(),
       base::Bind(
@@ -38,7 +38,7 @@ bool MusicManagerPrivateGetDeviceIdFunction::RunImpl() {
 
 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);