| Index: chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation.cc
|
| diff --git a/chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation.cc b/chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation.cc
|
| index 8dc69b8b9a5d03a6bd67489117047d5fb090c2d5..0709a1dcc56cbebb9ad1b4f17b886c9fc82ff347 100644
|
| --- a/chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation.cc
|
| +++ b/chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation.cc
|
| @@ -69,7 +69,7 @@ GetFileForSavingOperation::~GetFileForSavingOperation() {
|
| void GetFileForSavingOperation::GetFileForSaving(
|
| const base::FilePath& file_path,
|
| const GetFileCallback& callback) {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| + DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
| DCHECK(!callback.is_null());
|
|
|
| create_file_operation_->CreateFile(
|
| @@ -86,7 +86,7 @@ void GetFileForSavingOperation::GetFileForSavingAfterCreate(
|
| const base::FilePath& file_path,
|
| const GetFileCallback& callback,
|
| FileError error) {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| + DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
| DCHECK(!callback.is_null());
|
|
|
| if (error != FILE_ERROR_OK) {
|
| @@ -109,7 +109,7 @@ void GetFileForSavingOperation::GetFileForSavingAfterDownload(
|
| FileError error,
|
| const base::FilePath& cache_path,
|
| scoped_ptr<ResourceEntry> entry) {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| + DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
| DCHECK(!callback.is_null());
|
|
|
| if (error != FILE_ERROR_OK) {
|
| @@ -144,7 +144,7 @@ void GetFileForSavingOperation::GetFileForSavingAfterOpenForWrite(
|
| scoped_ptr<ResourceEntry> entry,
|
| scoped_ptr<base::ScopedClosureRunner>* file_closer,
|
| FileError error) {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| + DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
| DCHECK(!callback.is_null());
|
|
|
| if (error != FILE_ERROR_OK) {
|
| @@ -171,7 +171,7 @@ void GetFileForSavingOperation::GetFileForSavingAfterWatch(
|
| const base::FilePath& cache_path,
|
| scoped_ptr<ResourceEntry> entry,
|
| bool success) {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| + DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
| DCHECK(!callback.is_null());
|
|
|
| logger_->Log(logging::LOG_INFO, "Started watching modification to %s [%s].",
|
|
|