Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / media_galleries / mac / mtp_device_delegate_impl_mac.mm
index 2531d71..8bd2167 100644 (file)
@@ -217,7 +217,7 @@ void MTPDeviceDelegateImplMac::GetFileInfoImpl(
     const base::FilePath& file_path,
     base::File::Info* file_info,
     base::File::Error* error) {
-  DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+  DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
   base::hash_map<base::FilePath::StringType,
                  base::File::Info>::const_iterator i =
       file_info_.find(file_path.value());
@@ -233,7 +233,7 @@ void MTPDeviceDelegateImplMac::ReadDirectoryImpl(
       const base::FilePath& root,
       const ReadDirectorySuccessCallback& success_callback,
       const ErrorCallback& error_callback) {
-  DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+  DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
 
   read_dir_transactions_.push_back(ReadDirectoryRequest(
       root, success_callback, error_callback));
@@ -272,7 +272,7 @@ void MTPDeviceDelegateImplMac::DownloadFile(
       const base::FilePath& local_path,
       const CreateSnapshotFileSuccessCallback& success_callback,
       const ErrorCallback& error_callback) {
-  DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+  DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
 
   base::File::Error error;
   base::File::Info info;
@@ -295,7 +295,7 @@ void MTPDeviceDelegateImplMac::DownloadFile(
 }
 
 void MTPDeviceDelegateImplMac::CancelAndDelete() {
-  DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+  DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
   // Artificially pretend that we have already gotten all items we're going
   // to get.
   NoMoreItems();