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

Unified Diff: components/nacl/loader/nacl_main.cc

Issue 179923006: Attempting to resolve a race condition with PowerMonitor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win64 fixes Created 6 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 | « components/nacl/loader/nacl_helper_win_64.cc ('k') | content/browser/browser_main_loop.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/loader/nacl_main.cc
diff --git a/components/nacl/loader/nacl_main.cc b/components/nacl/loader/nacl_main.cc
index 15b6fd2dc8cb16e6497876978addc6cca74812b7..f715c1eb3969598d77f2bb606bd78fa509e2f202 100644
--- a/components/nacl/loader/nacl_main.cc
+++ b/components/nacl/loader/nacl_main.cc
@@ -24,7 +24,7 @@ int NaClMain(const content::MainFunctionParams& parameters) {
scoped_ptr<base::PowerMonitorSource> power_monitor_source(
new base::PowerMonitorDeviceSource());
- base::PowerMonitor power_monitor(power_monitor_source.Pass());
+ base::PowerMonitor::Initialize(power_monitor_source.Pass());
base::HighResolutionTimerManager hi_res_timer_manager;
#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX)
@@ -49,5 +49,6 @@ int NaClMain(const content::MainFunctionParams& parameters) {
#else
NOTIMPLEMENTED() << " not implemented startup, plugin startup dialog etc.";
#endif
+
return 0;
}
« no previous file with comments | « components/nacl/loader/nacl_helper_win_64.cc ('k') | content/browser/browser_main_loop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698