diff options
author | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-24 07:19:51 +0000 |
---|---|---|
committer | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-24 07:19:51 +0000 |
commit | 4d62853116b1f32e7aaa832c7988fb173eafac24 (patch) | |
tree | 3d43282a5b159b1659f650807822810881552368 /chrome | |
parent | 6e08414d4b8a1d0217118a282666add8ec0b777a (diff) | |
download | chromium_src-4d62853116b1f32e7aaa832c7988fb173eafac24.zip chromium_src-4d62853116b1f32e7aaa832c7988fb173eafac24.tar.gz chromium_src-4d62853116b1f32e7aaa832c7988fb173eafac24.tar.bz2 |
rename Run in MessageLoopForUI to RunWithDispatcher
BUG=99471
TEST=none
Review URL: http://codereview.chromium.org/8343023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106896 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/autocomplete/search_provider_unittest.cc | 2 | ||||
-rw-r--r-- | chrome/browser/automation/automation_provider_win.cc | 2 | ||||
-rw-r--r-- | chrome/browser/chrome_browser_main.cc | 4 | ||||
-rw-r--r-- | chrome/browser/chrome_browser_main_win.cc | 2 | ||||
-rw-r--r-- | chrome/browser/ui/views/first_run_search_engine_view.cc | 2 | ||||
-rw-r--r-- | chrome/browser/ui/views/simple_message_box_views.cc | 2 | ||||
-rw-r--r-- | chrome/browser/ui/views/user_data_dir_dialog.cc | 2 | ||||
-rw-r--r-- | chrome/test/base/ui_test_utils.cc | 4 |
8 files changed, 10 insertions, 10 deletions
diff --git a/chrome/browser/autocomplete/search_provider_unittest.cc b/chrome/browser/autocomplete/search_provider_unittest.cc index e5e98ff..1308b6a 100644 --- a/chrome/browser/autocomplete/search_provider_unittest.cc +++ b/chrome/browser/autocomplete/search_provider_unittest.cc @@ -167,7 +167,7 @@ void SearchProviderTest::RunTillProviderDone() { #if defined(OS_MACOSX) message_loop_.Run(); #else - message_loop_.Run(NULL); + message_loop_.RunWithDispatcher(NULL); #endif } diff --git a/chrome/browser/automation/automation_provider_win.cc b/chrome/browser/automation/automation_provider_win.cc index 95e28ea..fe905ea 100644 --- a/chrome/browser/automation/automation_provider_win.cc +++ b/chrome/browser/automation/automation_provider_win.cc @@ -217,7 +217,7 @@ void AutomationProvider::WindowSimulateDrag( bool did_allow_task_nesting = loop->NestableTasksAllowed(); loop->SetNestableTasksAllowed(true); views::AcceleratorHandler handler; - loop->Run(&handler); + loop->RunWithDispatcher(&handler); loop->SetNestableTasksAllowed(did_allow_task_nesting); } SendMessage(top_level_hwnd, up_message, wparam_flags, diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc index ad4e0ca..46c9926 100644 --- a/chrome/browser/chrome_browser_main.cc +++ b/chrome/browser/chrome_browser_main.cc @@ -1951,9 +1951,9 @@ void ChromeBrowserMainParts::MainMessageLoopRun() { aura::Desktop::GetInstance()->Run(); #elif defined(TOOLKIT_VIEWS) views::AcceleratorHandler accelerator_handler; - MessageLoopForUI::current()->Run(&accelerator_handler); + MessageLoopForUI::current()->RunWithDispatcher(&accelerator_handler); #elif defined(USE_X11) - MessageLoopForUI::current()->Run(NULL); + MessageLoopForUI::current()->RunWithDispatcher(NULL); #elif defined(OS_POSIX) MessageLoopForUI::current()->Run(); #endif diff --git a/chrome/browser/chrome_browser_main_win.cc b/chrome/browser/chrome_browser_main_win.cc index 711193c..f723969 100644 --- a/chrome/browser/chrome_browser_main_win.cc +++ b/chrome/browser/chrome_browser_main_win.cc @@ -97,7 +97,7 @@ int AskForUninstallConfirmation() { int ret = content::RESULT_CODE_NORMAL_EXIT; views::Widget::CreateWindow(new UninstallView(&ret))->Show(); views::AcceleratorHandler accelerator_handler; - MessageLoopForUI::current()->Run(&accelerator_handler); + MessageLoopForUI::current()->RunWithDispatcher(&accelerator_handler); return ret; } diff --git a/chrome/browser/ui/views/first_run_search_engine_view.cc b/chrome/browser/ui/views/first_run_search_engine_view.cc index 1e86752..84af86f 100644 --- a/chrome/browser/ui/views/first_run_search_engine_view.cc +++ b/chrome/browser/ui/views/first_run_search_engine_view.cc @@ -70,7 +70,7 @@ void ShowFirstRunDialog(Profile* profile, window->SetAlwaysOnTop(true); window->Show(); views::AcceleratorHandler accelerator_handler; - MessageLoopForUI::current()->Run(&accelerator_handler); + MessageLoopForUI::current()->RunWithDispatcher(&accelerator_handler); window->Close(); } diff --git a/chrome/browser/ui/views/simple_message_box_views.cc b/chrome/browser/ui/views/simple_message_box_views.cc index 298412f..78cab40 100644 --- a/chrome/browser/ui/views/simple_message_box_views.cc +++ b/chrome/browser/ui/views/simple_message_box_views.cc @@ -64,7 +64,7 @@ bool SimpleMessageBoxViews::ShowYesNoBox(gfx::NativeWindow parent_window, bool old_state = MessageLoopForUI::current()->NestableTasksAllowed(); MessageLoopForUI::current()->SetNestableTasksAllowed(true); - MessageLoopForUI::current()->Run(dialog); + MessageLoopForUI::current()->RunWithDispatcher(dialog); MessageLoopForUI::current()->SetNestableTasksAllowed(old_state); g_browser_process->ReleaseModule(); diff --git a/chrome/browser/ui/views/user_data_dir_dialog.cc b/chrome/browser/ui/views/user_data_dir_dialog.cc index a700958..6a1c54f 100644 --- a/chrome/browser/ui/views/user_data_dir_dialog.cc +++ b/chrome/browser/ui/views/user_data_dir_dialog.cc @@ -17,7 +17,7 @@ FilePath UserDataDirDialog::RunUserDataDirDialog( const FilePath& user_data_dir) { // When the window closes, it will delete itself. UserDataDirDialog* dlg = new UserDataDirDialog(user_data_dir); - MessageLoopForUI::current()->Run(dlg); + MessageLoopForUI::current()->RunWithDispatcher(dlg); return dlg->user_data_dir(); } diff --git a/chrome/test/base/ui_test_utils.cc b/chrome/test/base/ui_test_utils.cc index 80e2316..17ec8c5 100644 --- a/chrome/test/base/ui_test_utils.cc +++ b/chrome/test/base/ui_test_utils.cc @@ -232,9 +232,9 @@ void RunMessageLoop() { loop->SetNestableTasksAllowed(true); #if defined(TOOLKIT_VIEWS) views::AcceleratorHandler handler; - loop->Run(&handler); + loop->RunWithDispatcher(&handler); #elif defined(OS_POSIX) && !defined(OS_MACOSX) - loop->Run(NULL); + loop->RunWithDispatcher(NULL); #else loop->Run(); #endif |