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

Unified Diff: chrome/browser/ui/views/external_tab_container_win.cc

Issue 14307023: chrome: Use base::MessageLoop. (Part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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: chrome/browser/ui/views/external_tab_container_win.cc
diff --git a/chrome/browser/ui/views/external_tab_container_win.cc b/chrome/browser/ui/views/external_tab_container_win.cc
index 991ef1f2ab7ba077f225891a7e705abffa176031..b9ec6a740c340d7314aa151c93b9fd5b21936ce1 100644
--- a/chrome/browser/ui/views/external_tab_container_win.cc
+++ b/chrome/browser/ui/views/external_tab_container_win.cc
@@ -270,11 +270,12 @@ bool ExternalTabContainerWin::Init(Profile* profile,
// Start loading initial URL
if (!initial_url.is_empty()) {
// Navigate out of context since we don't have a 'tab_handle_' yet.
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(&ExternalTabContainerWin::Navigate,
weak_factory_.GetWeakPtr(),
- initial_url, referrer));
+ initial_url,
+ referrer));
}
// We need WS_POPUP to be on the window during initialization, but
@@ -360,9 +361,10 @@ bool ExternalTabContainerWin::Reinitialize(
automation_resource_message_filter_ = filter;
// Wait for the automation channel to be initialized before resuming pending
// render views and sending in the navigation state.
- MessageLoop::current()->PostTask(
- FROM_HERE, base::Bind(&ExternalTabContainerWin::OnReinitialize,
- weak_factory_.GetWeakPtr()));
+ base::MessageLoop::current()->PostTask(
+ FROM_HERE,
+ base::Bind(&ExternalTabContainerWin::OnReinitialize,
+ weak_factory_.GetWeakPtr()));
if (parent_window)
SetParent(views::HWNDForWidget(widget_), parent_window);
« no previous file with comments | « chrome/browser/ui/views/extensions/extension_installed_bubble.cc ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698