Index: content/browser/browser_main_loop.cc |
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc |
index 1c6b1a033ebb75395447ad15d59d8b2dd3c35984..2f29698484684292593e3cbc353d8230b14303c3 100644 |
--- a/content/browser/browser_main_loop.cc |
+++ b/content/browser/browser_main_loop.cc |
@@ -49,6 +49,7 @@ |
#include "content/public/common/result_codes.h" |
#include "crypto/nss_util.h" |
#include "media/audio/audio_manager.h" |
+#include "media/audio/key_press_monitor.h" |
#include "media/base/media.h" |
#include "media/midi/midi_manager.h" |
#include "net/base/network_change_notifier.h" |
@@ -864,6 +865,15 @@ int BrowserMainLoop::BrowserThreadsStarted() { |
audio_manager_.get(), media_stream_manager_.get())); |
} |
+ { |
+ TRACE_EVENT0("startup", |
+ "BrowserMainLoop::BrowserThreadsStarted::InitKeyPressMonitor"); |
+ key_press_monitor_.reset( |
+ new media::KeyPressMonitor(audio_manager_->GetMessageLoop(), |
+ io_thread_->message_loop_proxy(), |
+ main_thread_->message_loop_proxy())); |
+ } |
+ |
// Alert the clipboard class to which threads are allowed to access the |
// clipboard: |
std::vector<base::PlatformThreadId> allowed_clipboard_threads; |