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

Unified Diff: chrome/browser/chromeos/drive/sync/entry_update_performer.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/sync/entry_update_performer.cc
diff --git a/chrome/browser/chromeos/drive/sync/entry_update_performer.cc b/chrome/browser/chromeos/drive/sync/entry_update_performer.cc
index f2c5084e588f4129ff9cfc3a2dcdb8e2bfd97194..0f8e069bb941ba7f8467452a1f88d68078571611 100644
--- a/chrome/browser/chromeos/drive/sync/entry_update_performer.cc
+++ b/chrome/browser/chromeos/drive/sync/entry_update_performer.cc
@@ -240,17 +240,17 @@ EntryUpdatePerformer::EntryUpdatePerformer(
scheduler,
metadata)),
weak_ptr_factory_(this) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
}
EntryUpdatePerformer::~EntryUpdatePerformer() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
}
void EntryUpdatePerformer::UpdateEntry(const std::string& local_id,
const ClientContext& context,
const FileOperationCallback& callback) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
DCHECK(!callback.is_null());
scoped_ptr<LocalState> local_state(new LocalState);
@@ -269,7 +269,7 @@ void EntryUpdatePerformer::UpdateEntryAfterPrepare(
const FileOperationCallback& callback,
scoped_ptr<LocalState> local_state,
FileError error) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
DCHECK(!callback.is_null());
if (error != FILE_ERROR_OK) {
@@ -407,7 +407,7 @@ void EntryUpdatePerformer::UpdateEntryAfterUpdateResource(
scoped_ptr<base::ScopedClosureRunner> loader_lock,
google_apis::DriveApiErrorCode status,
scoped_ptr<google_apis::FileResource> entry) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
DCHECK(!callback.is_null());
if (status == google_apis::HTTP_FORBIDDEN) {
@@ -437,7 +437,7 @@ void EntryUpdatePerformer::UpdateEntryAfterFinish(
const FileOperationCallback& callback,
const FileChange* changed_files,
FileError error) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
DCHECK(!callback.is_null());
delegate_->OnFileChangedByOperation(*changed_files);
« no previous file with comments | « chrome/browser/chromeos/drive/sync/entry_revert_performer.cc ('k') | chrome/browser/chromeos/drive/sync/remove_performer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698