Index: chrome/browser/sync/glue/bookmark_model_associator.cc |
diff --git a/chrome/browser/sync/glue/bookmark_model_associator.cc b/chrome/browser/sync/glue/bookmark_model_associator.cc |
index 08008baf7f652cf3b7ce73b3cd3fdff7f5eb6f12..20aa721c0377ef2cb241bd76cae9cd7d07523c70 100644 |
--- a/chrome/browser/sync/glue/bookmark_model_associator.cc |
+++ b/chrome/browser/sync/glue/bookmark_model_associator.cc |
@@ -260,18 +260,18 @@ BookmarkModelAssociator::BookmarkModelAssociator( |
unrecoverable_error_handler_(unrecoverable_error_handler), |
expect_mobile_bookmarks_folder_(expect_mobile_bookmarks_folder), |
weak_factory_(this) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
DCHECK(bookmark_model_); |
DCHECK(user_share_); |
DCHECK(unrecoverable_error_handler_); |
} |
BookmarkModelAssociator::~BookmarkModelAssociator() { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
} |
void BookmarkModelAssociator::UpdatePermanentNodeVisibility() { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
DCHECK(bookmark_model_->loaded()); |
BookmarkNode::Type bookmark_node_types[] = { |
@@ -323,7 +323,7 @@ bool BookmarkModelAssociator::InitSyncNodeFromChromeId( |
void BookmarkModelAssociator::Associate(const BookmarkNode* node, |
int64 sync_id) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
int64 node_id = node->id(); |
DCHECK_NE(sync_id, syncer::kInvalidId); |
DCHECK(id_map_.find(node_id) == id_map_.end()); |
@@ -336,7 +336,7 @@ void BookmarkModelAssociator::Associate(const BookmarkNode* node, |
} |
void BookmarkModelAssociator::Disassociate(int64 sync_id) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
SyncIdToBookmarkNodeMap::iterator iter = id_map_inverse_.find(sync_id); |
if (iter == id_map_inverse_.end()) |
return; |