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

Unified Diff: chrome/browser/extensions/api/image_writer_private/image_writer_utility_client.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, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/image_writer_private/image_writer_utility_client.cc
diff --git a/chrome/browser/extensions/api/image_writer_private/image_writer_utility_client.cc b/chrome/browser/extensions/api/image_writer_private/image_writer_utility_client.cc
index deff3ab7dc72ab1ec7a96e4073e1699721c2f87b..9c5c09b7ce6a2caf69169155c29db9a0aa3f5dae 100644
--- a/chrome/browser/extensions/api/image_writer_private/image_writer_utility_client.cc
+++ b/chrome/browser/extensions/api/image_writer_private/image_writer_utility_client.cc
@@ -20,7 +20,7 @@ void ImageWriterUtilityClient::Write(const ProgressCallback& progress_callback,
const ErrorCallback& error_callback,
const base::FilePath& source,
const base::FilePath& target) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
StartHost();
@@ -40,7 +40,7 @@ void ImageWriterUtilityClient::Verify(const ProgressCallback& progress_callback,
const ErrorCallback& error_callback,
const base::FilePath& source,
const base::FilePath& target) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
StartHost();
@@ -56,7 +56,7 @@ void ImageWriterUtilityClient::Verify(const ProgressCallback& progress_callback,
}
void ImageWriterUtilityClient::Cancel(const CancelCallback& cancel_callback) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (!utility_process_host_) {
// If we haven't connected, there is nothing to cancel.

Powered by Google App Engine
This is Rietveld 408576698