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

Unified Diff: content/browser/browser_main_loop.cc

Issue 21183002: Adding key press detection in the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 5 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/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index cc45bc237509b98a2fa1ff4c32d6c8c1a8d319e5..cb2cb3361755fa9efdc693a1e10b3f0ba03aaef9 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -47,6 +47,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"
@@ -414,6 +415,11 @@ void BrowserMainLoop::MainMessageLoopStart() {
audio_manager_.reset(media::AudioManager::Create());
}
{
+ TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:KeyPressMonitor")
+ key_press_monitor_.reset(
+ new media::KeyPressMonitor(audio_manager_->GetMessageLoop()));
+ }
+ {
TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:MIDIManager")
midi_manager_.reset(media::MIDIManager::Create());
}

Powered by Google App Engine
This is Rietveld 408576698