Index: chrome/browser/android/bookmarks/partner_bookmarks_shim.cc |
diff --git a/chrome/browser/android/bookmarks/partner_bookmarks_shim.cc b/chrome/browser/android/bookmarks/partner_bookmarks_shim.cc |
index 565e723e5e1bef94301077a682ea2754457fa6ad..433b0ca5fbfdaef849b682e63a013aa8c0381388 100644 |
--- a/chrome/browser/android/bookmarks/partner_bookmarks_shim.cc |
+++ b/chrome/browser/android/bookmarks/partner_bookmarks_shim.cc |
@@ -51,7 +51,7 @@ static bool g_disable_partner_bookmarks_editing = false; |
// static |
PartnerBookmarksShim* PartnerBookmarksShim::BuildForBrowserContext( |
content::BrowserContext* browser_context) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
PartnerBookmarksShim* data = |
static_cast<PartnerBookmarksShim*>( |
@@ -176,7 +176,7 @@ const BookmarkNode* PartnerBookmarksShim::GetPartnerBookmarksRoot() const { |
} |
void PartnerBookmarksShim::SetPartnerBookmarksRoot(BookmarkNode* root_node) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
g_partner_model_keeper.Get().partner_bookmarks_root.reset(root_node); |
g_partner_model_keeper.Get().loaded = true; |
FOR_EACH_OBSERVER(PartnerBookmarksShim::Observer, observers_, |
@@ -198,7 +198,7 @@ bool operator<(const PartnerBookmarksShim::NodeRenamingMapKey& a, |
// static |
void PartnerBookmarksShim::ClearInBrowserContextForTesting( |
content::BrowserContext* browser_context) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
browser_context->SetUserData(kPartnerBookmarksShimUserDataKey, 0); |
} |
@@ -237,7 +237,7 @@ const BookmarkNode* PartnerBookmarksShim::GetNodeByID( |
} |
void PartnerBookmarksShim::ReloadNodeMapping() { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
node_rename_remove_map_.clear(); |
if (!prefs_) |
@@ -272,7 +272,7 @@ void PartnerBookmarksShim::ReloadNodeMapping() { |
} |
void PartnerBookmarksShim::SaveNodeMapping() { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
if (!prefs_) |
return; |