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

Side by Side Diff: content/browser/browser_main_loop.cc

Issue 16092013: Use base::MessageLoop in more files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again, sigh Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/browser_main_loop.h" 5 #include "content/browser/browser_main_loop.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/hi_res_timer_manager.h" 10 #include "base/hi_res_timer_manager.h"
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 404
405 #if defined(OS_WIN) 405 #if defined(OS_WIN)
406 system_message_window_.reset(new SystemMessageWindowWin); 406 system_message_window_.reset(new SystemMessageWindowWin);
407 407
408 if (base::win::IsTSFAwareRequired()) { 408 if (base::win::IsTSFAwareRequired()) {
409 // Create a TSF message filter for the message loop. MessageLoop takes 409 // Create a TSF message filter for the message loop. MessageLoop takes
410 // ownership of the filter. 410 // ownership of the filter.
411 scoped_ptr<base::win::TextServicesMessageFilter> tsf_message_filter( 411 scoped_ptr<base::win::TextServicesMessageFilter> tsf_message_filter(
412 new base::win::TextServicesMessageFilter); 412 new base::win::TextServicesMessageFilter);
413 if (tsf_message_filter->Init()) { 413 if (tsf_message_filter->Init()) {
414 MessageLoopForUI::current()->SetMessageFilter( 414 base::MessageLoopForUI::current()->SetMessageFilter(
415 tsf_message_filter.PassAs<MessageLoopForUI::MessageFilter>()); 415 tsf_message_filter.PassAs<base::MessageLoopForUI::MessageFilter>());
416 } 416 }
417 } 417 }
418 #endif 418 #endif
419 419
420 if (parts_) 420 if (parts_)
421 parts_->PostMainMessageLoopStart(); 421 parts_->PostMainMessageLoopStart();
422 422
423 #if defined(OS_ANDROID) 423 #if defined(OS_ANDROID)
424 SurfaceTexturePeer::InitInstance(new SurfaceTexturePeerBrowserImpl()); 424 SurfaceTexturePeer::InitInstance(new SurfaceTexturePeerBrowserImpl());
425 DataFetcherImplAndroid::Init(base::android::AttachCurrentThread()); 425 DataFetcherImplAndroid::Init(base::android::AttachCurrentThread());
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 if (parameters_.ui_task) 866 if (parameters_.ui_task)
867 base::MessageLoopForUI::current()->PostTask(FROM_HERE, 867 base::MessageLoopForUI::current()->PostTask(FROM_HERE,
868 *parameters_.ui_task); 868 *parameters_.ui_task);
869 869
870 base::RunLoop run_loop; 870 base::RunLoop run_loop;
871 run_loop.Run(); 871 run_loop.Run();
872 #endif 872 #endif
873 } 873 }
874 874
875 } // namespace content 875 } // namespace content
OLDNEW
« no previous file with comments | « components/webdata/common/web_data_request_manager.cc ('k') | content/browser/browser_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698