summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_main.cc
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-29 23:34:56 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-29 23:34:56 +0000
commit047f6227bb49d5e315c2da557255035eb22c846f (patch)
tree7ec2e6410c837e08ba057d18984f13494a789448 /chrome/browser/browser_main.cc
parent650e6918651545098d70fc85d37336bca49c74bf (diff)
downloadchromium_src-047f6227bb49d5e315c2da557255035eb22c846f.zip
chromium_src-047f6227bb49d5e315c2da557255035eb22c846f.tar.gz
chromium_src-047f6227bb49d5e315c2da557255035eb22c846f.tar.bz2
There is no need for the browser process to have an accelerator handler.This CL cleans this up.BUG=NoneTEST=Accelerator should work in Chrome and in the first run window.
Review URL: http://codereview.chromium.org/160301 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22020 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_main.cc')
-rw-r--r--chrome/browser/browser_main.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc
index ad43be4..302385d 100644
--- a/chrome/browser/browser_main.cc
+++ b/chrome/browser/browser_main.cc
@@ -192,7 +192,8 @@ StringPiece NetResourceProvider(int key) {
void RunUIMessageLoop(BrowserProcess* browser_process) {
#if defined(OS_WIN)
- MessageLoopForUI::current()->Run(browser_process->accelerator_handler());
+ views::AcceleratorHandler accelerator_handler;
+ MessageLoopForUI::current()->Run(&accelerator_handler);
#elif defined(OS_POSIX)
MessageLoopForUI::current()->Run();
#endif