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

Unified Diff: chrome/browser/android/bookmarks/partner_bookmarks_shim.cc

Issue 1016473003: favor DCHECK_CURRENTLY_ON for better logs in chrome/browser/android/ (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/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;
« no previous file with comments | « chrome/browser/android/bookmarks/partner_bookmarks_reader.cc ('k') | chrome/browser/android/most_visited_sites.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698