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

Unified Diff: chrome/browser/chromeos/drive/write_on_cache_file.cc

Issue 1036723003: favor DCHECK_CURRENTLY_ON for better logs in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/chromeos/drive/write_on_cache_file.cc
diff --git a/chrome/browser/chromeos/drive/write_on_cache_file.cc b/chrome/browser/chromeos/drive/write_on_cache_file.cc
index 367cc048a32363df5f45cb8091d3634bd261eac6..340cf4eae153b4985825b7da4b6add0b43c516e4 100644
--- a/chrome/browser/chromeos/drive/write_on_cache_file.cc
+++ b/chrome/browser/chromeos/drive/write_on_cache_file.cc
@@ -36,7 +36,7 @@ void WriteOnCacheFileAfterOpenFile(
FileError error,
const base::FilePath& local_cache_path,
const base::Closure& close_callback) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
BrowserThread::GetBlockingPool()->PostTaskAndReply(
FROM_HERE,
@@ -59,7 +59,7 @@ void WriteOnCacheFileAndReply(FileSystemInterface* file_system,
const std::string& mime_type,
const WriteOnCacheFileCallback& callback,
const FileOperationCallback& reply) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
DCHECK(file_system);
DCHECK(!callback.is_null());
DCHECK(!reply.is_null());
« no previous file with comments | « chrome/browser/chromeos/drive/sync_client.cc ('k') | chrome/browser/chromeos/extensions/echo_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698