Index: content/browser/browser_main_loop.cc |
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc |
index 093aef3d0f2f35a9dedce93c80bf93097b06a996..cedf259099763745312271edff83f17f32dbf54f 100644 |
--- a/content/browser/browser_main_loop.cc |
+++ b/content/browser/browser_main_loop.cc |
@@ -681,6 +681,12 @@ int BrowserMainLoop::CreateThreads() { |
thread_to_start = &io_thread_; |
options = &io_message_loop_options; |
break; |
+ case BrowserThread::POWER_PROFILER: |
+ TRACE_EVENT_BEGIN1("startup", |
+ "BrowserMainLoop::CreateThreads:start", |
+ "Thread", "BrowserThread::POWER_PROFILER"); |
+ thread_to_start = &power_profiler_thread_; |
+ break; |
case BrowserThread::UI: |
case BrowserThread::ID_COUNT: |
default: |
@@ -853,6 +859,12 @@ void BrowserMainLoop::ShutdownThreadsAndCleanUp() { |
io_thread_.reset(); |
} |
break; |
+ case BrowserThread::POWER_PROFILER: { |
+ TRACE_EVENT0("shutdown", |
+ "BrowserMainLoop::Subsystem:PowerProfilerThread"); |
+ power_profiler_thread_.reset(); |
+ } |
+ break; |
case BrowserThread::UI: |
case BrowserThread::ID_COUNT: |
default: |