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

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

Issue 2951413003: Add UMA for High Resolution Timer Usage (Closed)
Patch Set: Switched to using Timer in HighResolutionTimerManager Created 3 years, 6 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: components/nacl/loader/nacl_helper_win_64.cc
diff --git a/components/nacl/loader/nacl_helper_win_64.cc b/components/nacl/loader/nacl_helper_win_64.cc
index fb2ebe5fb6714f24f4013e3265a301dddc626b0e..64c5dbe1ec7ca6fe7fdcbe9cbb3ebf2a9ef708f5 100644
--- a/components/nacl/loader/nacl_helper_win_64.cc
+++ b/components/nacl/loader/nacl_helper_win_64.cc
@@ -15,6 +15,7 @@
#include "base/process/launch.h"
#include "base/process/memory.h"
#include "base/strings/string_util.h"
+#include "base/task_scheduler/task_scheduler.h"
#include "base/timer/hi_res_timer_manager.h"
#include "base/win/process_startup_helper.h"
#include "components/nacl/broker/nacl_broker_listener.h"
@@ -39,6 +40,8 @@ int NaClBrokerMain(const content::MainFunctionParams& parameters) {
mojo::edk::Init();
+ base::TaskScheduler::CreateAndStartWithDefaultParams("NaCl");
+
std::unique_ptr<base::PowerMonitorSource> power_monitor_source(
new base::PowerMonitorDeviceSource());
base::PowerMonitor power_monitor(std::move(power_monitor_source));

Powered by Google App Engine
This is Rietveld 408576698