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

Unified Diff: base/process/process_metrics_mac.cc

Issue 549753002: Cleanup bits of base::ProcessMetrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix a comment Created 6 years, 3 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 | « base/process/process_metrics_linux.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/process_metrics_mac.cc
diff --git a/base/process/process_metrics_mac.cc b/base/process/process_metrics_mac.cc
index ada04e1427ffabc56a04b5d5696ca7f2441bbb48..a450e8d6bb6f132a6295ca3f004b7b0a57facded 100644
--- a/base/process/process_metrics_mac.cc
+++ b/base/process/process_metrics_mac.cc
@@ -312,9 +312,10 @@ int ProcessMetrics::GetIdleWakeupsPerSecond() {
int64 wakeups_delta = absolute_idle_wakeups - last_absolute_idle_wakeups_;
int64 time_delta = (time - last_idle_wakeups_time_).InMicroseconds();
- DCHECK_NE(0U, time_delta);
- if (time_delta == 0)
+ if (time_delta == 0) {
+ NOTREACHED();
return 0;
+ }
last_idle_wakeups_time_ = time;
last_absolute_idle_wakeups_ = absolute_idle_wakeups;
« no previous file with comments | « base/process/process_metrics_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698