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

Unified Diff: content/child/child_thread.cc

Issue 179923006: Attempting to resolve a race condition with PowerMonitor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
Index: content/child/child_thread.cc
diff --git a/content/child/child_thread.cc b/content/child/child_thread.cc
index e38e3a5856e224eee4febc43777728d909a92000..deab121b8d9ff893d133401645e8d6a866bfc414 100644
--- a/content/child/child_thread.cc
+++ b/content/child/child_thread.cc
@@ -264,7 +264,7 @@ void ChildThread::Init() {
new PowerMonitorBroadcastSource());
channel_->AddFilter(power_monitor_source->GetMessageFilter());
- power_monitor_.reset(new base::PowerMonitor(
+ power_monitor_.reset(base::PowerMonitor::Create(
power_monitor_source.PassAs<base::PowerMonitorSource>()));
}

Powered by Google App Engine
This is Rietveld 408576698