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

Unified Diff: base/power_monitor/power_monitor_source.h

Issue 226263008: Revert of Attempting to resolve a race condition with PowerMonitor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « base/power_monitor/power_monitor.cc ('k') | base/power_monitor/power_monitor_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/power_monitor/power_monitor_source.h
diff --git a/base/power_monitor/power_monitor_source.h b/base/power_monitor/power_monitor_source.h
index 883eddd4388aa1d3232fd496a2412181f1badb09..b8f41850ef2502e70f84c4a2d82e411f0ef289e2 100644
--- a/base/power_monitor/power_monitor_source.h
+++ b/base/power_monitor/power_monitor_source.h
@@ -40,6 +40,8 @@
// Get the process-wide PowerMonitorSource (if not present, returns NULL).
static PowerMonitorSource* Get();
+ // ProcessPowerEvent should only be called from a single thread, most likely
+ // the UI thread or, in child processes, the IO thread.
static void ProcessPowerEvent(PowerEvent event_id);
// Platform-specific method to check whether the system is currently
« no previous file with comments | « base/power_monitor/power_monitor.cc ('k') | base/power_monitor/power_monitor_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698