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

Unified Diff: chrome/browser/browser_init.cc

Issue 4098003: Handle volume keys within Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Backed out caching Singleton instance Created 10 years, 2 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 | « no previous file | chrome/browser/chromeos/login/screen_locker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_init.cc
diff --git a/chrome/browser/browser_init.cc b/chrome/browser/browser_init.cc
index c1ab3a9fd2d19b4fae78318f03c6e96e12797b74..228f092c8f017ea0db5ea5870ebfdbab12d6b9b1 100644
--- a/chrome/browser/browser_init.cc
+++ b/chrome/browser/browser_init.cc
@@ -403,6 +403,10 @@ bool BrowserInit::LaunchBrowser(const CommandLine& command_line,
// of what window has focus.
chromeos::WmMessageListener::instance();
+ // Create the SystemKeyEventListener so it can listen for system keyboard
+ // messages regardless of focus.
+ chromeos::SystemKeyEventListener::instance();
+
// Create the WmOverviewController so it can register with the listener.
chromeos::WmOverviewController::instance();
@@ -441,10 +445,6 @@ bool BrowserInit::LaunchBrowser(const CommandLine& command_line,
chromeos::CrosLibrary::Get()->GetNetworkLibrary()->AddObserver(
chromeos::NetworkStateNotifier::Get());
-
- // Creates the SystemKeyEventListener to listen for keypress messages
- // regardless of what window has focus.
- chromeos::SystemKeyEventListener::instance();
}
#endif
return true;
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/screen_locker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698