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

Unified Diff: device/power_save_blocker/power_save_blocker_mac.cc

Issue 2163023002: Unify usage of logging/assert macros in base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix base/android/build_info.cc compile Created 4 years, 5 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 | « chromecast/app/linux/cast_crash_reporter_client_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/power_save_blocker/power_save_blocker_mac.cc
diff --git a/device/power_save_blocker/power_save_blocker_mac.cc b/device/power_save_blocker/power_save_blocker_mac.cc
index 792ca6c4a75a2bb4f759e2b77907b8cada588987..4ce6c1871c3c2d493ef09c797193a701b17aaafa 100644
--- a/device/power_save_blocker/power_save_blocker_mac.cc
+++ b/device/power_save_blocker/power_save_blocker_mac.cc
@@ -8,6 +8,7 @@
#include "base/bind.h"
#include "base/lazy_instance.h"
+#include "base/logging.h"
#include "base/mac/scoped_cftyperef.h"
#include "base/single_thread_task_runner.h"
#include "base/strings/sys_string_conversions.h"
@@ -24,7 +25,7 @@ namespace {
// .
struct PowerSaveBlockerLazyInstanceTraits {
static const bool kRegisterOnExit = false;
-#ifndef NDEBUG
+#if DCHECK_IS_ON()
static const bool kAllowedToAccessOnNonjoinableThread = true;
#endif
« no previous file with comments | « chromecast/app/linux/cast_crash_reporter_client_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698