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

Unified Diff: chrome/browser/android/webapps/single_tab_mode_tab_helper.cc

Issue 1095243002: [chrome/browser/android] favor DCHECK_CURRENTLY_ON for better logs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « chrome/browser/android/thumbnail/thumbnail_store.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/webapps/single_tab_mode_tab_helper.cc
diff --git a/chrome/browser/android/webapps/single_tab_mode_tab_helper.cc b/chrome/browser/android/webapps/single_tab_mode_tab_helper.cc
index 786075ebb684bc8f27cd4769ffdad59cc58dd521..56db44f00fe79acb0dfa40af52e080cca205a260 100644
--- a/chrome/browser/android/webapps/single_tab_mode_tab_helper.cc
+++ b/chrome/browser/android/webapps/single_tab_mode_tab_helper.cc
@@ -20,13 +20,13 @@ typedef std::set<RenderWidgetHostID> SingleTabIDSet;
base::LazyInstance<SingleTabIDSet> g_blocked_ids = LAZY_INSTANCE_INITIALIZER;
void AddPairOnIOThread(int32 process_id, int32 routing_id) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
RenderWidgetHostID single_tab_pair(process_id, routing_id);
g_blocked_ids.Get().insert(single_tab_pair);
}
void RemovePairOnIOThread(int32 process_id, int32 routing_id) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
RenderWidgetHostID single_tab_pair(process_id, routing_id);
SingleTabIDSet::iterator itr = g_blocked_ids.Get().find(single_tab_pair);
DCHECK(itr != g_blocked_ids.Get().end());
@@ -87,7 +87,7 @@ void SingleTabModeTabHelper::PermanentlyBlockAllNewWindows() {
bool SingleTabModeTabHelper::IsRegistered(int32 process_id,
int32 routing_id) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
RenderWidgetHostID single_tab_pair(process_id, routing_id);
SingleTabIDSet::iterator itr = g_blocked_ids.Get().find(single_tab_pair);
return itr != g_blocked_ids.Get().end();
« no previous file with comments | « chrome/browser/android/thumbnail/thumbnail_store.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698