Index: chrome/browser/extensions/webstore_installer.cc |
diff --git a/chrome/browser/extensions/webstore_installer.cc b/chrome/browser/extensions/webstore_installer.cc |
index a780425fa7fd3b7e6c452bb7a0808dc68828e46d..f9cfafa8e4a6e51a4e5fd0faa2ee6d50d18c4bdc 100644 |
--- a/chrome/browser/extensions/webstore_installer.cc |
+++ b/chrome/browser/extensions/webstore_installer.cc |
@@ -258,7 +258,7 @@ WebstoreInstaller::WebstoreInstaller(Profile* profile, |
approval_(approval.release()), |
total_modules_(0), |
download_started_(false) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
DCHECK(web_contents); |
registrar_.Add(this, chrome::NOTIFICATION_CRX_INSTALLER_DONE, |
@@ -270,7 +270,7 @@ WebstoreInstaller::WebstoreInstaller(Profile* profile, |
} |
void WebstoreInstaller::Start() { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
AddRef(); // Balanced in ReportSuccess and ReportFailure. |
if (!Extension::IdIsValid(id_)) { |
@@ -552,7 +552,7 @@ void WebstoreInstaller::DownloadCrx( |
// early-returns into a single branch makes it hard to see exactly which pointer |
// it is. |
void WebstoreInstaller::StartDownload(const base::FilePath& file) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
if (file.empty()) { |
ReportFailure(kDownloadDirectoryError, FAILURE_REASON_OTHER); |