diff options
Diffstat (limited to 'chrome/browser/chromeos/drive/file_system/truncate_operation.cc')
-rw-r--r-- | chrome/browser/chromeos/drive/file_system/truncate_operation.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/chrome/browser/chromeos/drive/file_system/truncate_operation.cc b/chrome/browser/chromeos/drive/file_system/truncate_operation.cc index 0c0edaf..ff1307e 100644 --- a/chrome/browser/chromeos/drive/file_system/truncate_operation.cc +++ b/chrome/browser/chromeos/drive/file_system/truncate_operation.cc @@ -18,9 +18,6 @@ #include "chrome/browser/chromeos/drive/file_system/download_operation.h" #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h" #include "chrome/browser/chromeos/drive/job_scheduler.h" -#include "content/public/browser/browser_thread.h" - -using content::BrowserThread; namespace drive { namespace file_system { @@ -80,7 +77,7 @@ TruncateOperation::~TruncateOperation() { void TruncateOperation::Truncate(const base::FilePath& file_path, int64 length, const FileOperationCallback& callback) { - DCHECK_CURRENTLY_ON(BrowserThread::UI); + DCHECK(thread_checker_.CalledOnValidThread()); DCHECK(!callback.is_null()); if (length < 0) { @@ -107,7 +104,7 @@ void TruncateOperation::TruncateAfterEnsureFileDownloadedByPath( FileError error, const base::FilePath& local_file_path, scoped_ptr<ResourceEntry> entry) { - DCHECK_CURRENTLY_ON(BrowserThread::UI); + DCHECK(thread_checker_.CalledOnValidThread()); DCHECK(!callback.is_null()); if (error != FILE_ERROR_OK) { @@ -136,7 +133,7 @@ void TruncateOperation::TruncateAfterTruncateOnBlockingPool( const std::string& local_id, const FileOperationCallback& callback, FileError error) { - DCHECK_CURRENTLY_ON(BrowserThread::UI); + DCHECK(thread_checker_.CalledOnValidThread()); DCHECK(!callback.is_null()); delegate_->OnEntryUpdatedByOperation(ClientContext(USER_INITIATED), local_id); |