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

Unified Diff: content/browser/power_save_blocker_x11.cc

Issue 1000373002: favor DCHECK_CURRENTLY_ON for better logs in content/browser/[f-p]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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
« no previous file with comments | « content/browser/power_save_blocker_win.cc ('k') | content/browser/profiler_controller_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/power_save_blocker_x11.cc
diff --git a/content/browser/power_save_blocker_x11.cc b/content/browser/power_save_blocker_x11.cc
index 58e1e49990b17071b692bae11360afe84789dc59..9cd6113e3f06ddf427460b82a291c5bb085de971 100644
--- a/content/browser/power_save_blocker_x11.cc
+++ b/content/browser/power_save_blocker_x11.cc
@@ -157,7 +157,7 @@ void PowerSaveBlockerImpl::Delegate::CleanUp() {
}
void PowerSaveBlockerImpl::Delegate::InitOnUIThread() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
base::AutoLock lock(lock_);
api_ = SelectAPI();
if (enqueue_apply_ && api_ != NO_API) {
@@ -171,7 +171,7 @@ void PowerSaveBlockerImpl::Delegate::InitOnUIThread() {
}
void PowerSaveBlockerImpl::Delegate::ApplyBlock(DBusAPI api) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
+ DCHECK_CURRENTLY_ON(BrowserThread::FILE);
DCHECK(!bus_.get()); // ApplyBlock() should only be called once.
dbus::Bus::Options options;
@@ -251,7 +251,7 @@ void PowerSaveBlockerImpl::Delegate::ApplyBlock(DBusAPI api) {
}
void PowerSaveBlockerImpl::Delegate::RemoveBlock(DBusAPI api) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
+ DCHECK_CURRENTLY_ON(BrowserThread::FILE);
DCHECK(bus_.get()); // RemoveBlock() should only be called once.
scoped_refptr<dbus::ObjectProxy> object_proxy;
« no previous file with comments | « content/browser/power_save_blocker_win.cc ('k') | content/browser/profiler_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698