Index: chrome/browser/extensions/api/image_writer_private/operation_manager.cc |
diff --git a/chrome/browser/extensions/api/image_writer_private/operation_manager.cc b/chrome/browser/extensions/api/image_writer_private/operation_manager.cc |
index b17cc7f5a39ded8c21ae3918d3529fb5b3014a00..794858bc77ce3c365d0ccb5e24f492cd6ab63cf7 100644 |
--- a/chrome/browser/extensions/api/image_writer_private/operation_manager.cc |
+++ b/chrome/browser/extensions/api/image_writer_private/operation_manager.cc |
@@ -139,7 +139,7 @@ void OperationManager::DestroyPartitions( |
void OperationManager::OnProgress(const ExtensionId& extension_id, |
image_writer_api::Stage stage, |
int progress) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
image_writer_api::ProgressInfo info; |
info.stage = stage; |
@@ -155,7 +155,7 @@ void OperationManager::OnProgress(const ExtensionId& extension_id, |
} |
void OperationManager::OnComplete(const ExtensionId& extension_id) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
scoped_ptr<base::ListValue> args(image_writer_api::OnWriteComplete::Create()); |
scoped_ptr<Event> event(new Event( |
@@ -171,7 +171,7 @@ void OperationManager::OnError(const ExtensionId& extension_id, |
image_writer_api::Stage stage, |
int progress, |
const std::string& error_message) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
image_writer_api::ProgressInfo info; |
DLOG(ERROR) << "ImageWriter error: " << error_message; |