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

Unified Diff: chrome/browser/ui/gtk/tabs/tab_strip_gtk.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/gtk/tabs/tab_strip_gtk.cc
diff --git a/chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc b/chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc
index 4c821f05b42a6b6fe1cd2137ff4b301fefe601fd..d86364d947721b50a4d74eeaf1acd9e0ca4f62ba 100644
--- a/chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc
+++ b/chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc
@@ -915,7 +915,7 @@ void TabStripGtk::DestroyDraggedTab(TabGtk* tab) {
gtk_container_remove(GTK_CONTAINER(tabstrip_.get()), tab->widget());
// If we delete the dragged source tab here, the DestroyDragWidget posted
// task will be run after the tab is deleted, leading to a crash.
- MessageLoop::current()->DeleteSoon(FROM_HERE, tab);
+ base::MessageLoop::current()->DeleteSoon(FROM_HERE, tab);
// Force a layout here, because if we've just quickly drag detached a Tab,
// the stopping of the active animation above may have left the TabStrip in a
@@ -1417,7 +1417,7 @@ void TabStripGtk::HandleGlobalMouseMoveEvent() {
// Mouse moved outside the tab slop zone, start a timer to do a resize
// layout after a short while...
if (!weak_factory_.HasWeakPtrs()) {
- MessageLoop::current()->PostDelayedTask(
+ base::MessageLoop::current()->PostDelayedTask(
FROM_HERE,
base::Bind(&TabStripGtk::ResizeLayoutTabs,
weak_factory_.GetWeakPtr()),
@@ -1655,14 +1655,14 @@ void TabStripGtk::ReStack() {
void TabStripGtk::AddMessageLoopObserver() {
if (!added_as_message_loop_observer_) {
- MessageLoopForUI::current()->AddObserver(this);
+ base::MessageLoopForUI::current()->AddObserver(this);
added_as_message_loop_observer_ = true;
}
}
void TabStripGtk::RemoveMessageLoopObserver() {
if (added_as_message_loop_observer_) {
- MessageLoopForUI::current()->RemoveObserver(this);
+ base::MessageLoopForUI::current()->RemoveObserver(this);
added_as_message_loop_observer_ = false;
}
}
@@ -2125,7 +2125,7 @@ void TabStripGtk::OnSizeAllocate(GtkWidget* widget, GtkAllocation* allocation) {
if (GetTabCount() == 1) {
Layout();
} else if (!layout_factory_.HasWeakPtrs()) {
- MessageLoop::current()->PostDelayedTask(
+ base::MessageLoop::current()->PostDelayedTask(
FROM_HERE,
base::Bind(&TabStripGtk::Layout, layout_factory_.GetWeakPtr()),
base::TimeDelta::FromMilliseconds(kLayoutAfterSizeAllocateMs));
« no previous file with comments | « chrome/browser/ui/gtk/tabs/tab_strip_gtk.h ('k') | chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698