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

Unified Diff: chrome/browser/ui/gtk/tabs/tab_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
« no previous file with comments | « chrome/browser/ui/gtk/tabs/tab_gtk.h ('k') | chrome/browser/ui/gtk/tabs/tab_strip_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/tabs/tab_gtk.cc
diff --git a/chrome/browser/ui/gtk/tabs/tab_gtk.cc b/chrome/browser/ui/gtk/tabs/tab_gtk.cc
index c145ff28d0ab9dadad07607d7ab304331a0b47d4..94eae7caf08f1f30525951c717f69ee42a959ed7 100644
--- a/chrome/browser/ui/gtk/tabs/tab_gtk.cc
+++ b/chrome/browser/ui/gtk/tabs/tab_gtk.cc
@@ -42,11 +42,11 @@ class TabGtk::TabGtkObserverHelper {
public:
explicit TabGtkObserverHelper(TabGtk* tab)
: tab_(tab) {
- MessageLoopForUI::current()->AddObserver(tab_);
+ base::MessageLoopForUI::current()->AddObserver(tab_);
}
~TabGtkObserverHelper() {
- MessageLoopForUI::current()->RemoveObserver(tab_);
+ base::MessageLoopForUI::current()->RemoveObserver(tab_);
}
private:
@@ -197,7 +197,7 @@ gboolean TabGtk::OnDragButtonReleased(GtkWidget* widget,
// get a follow up event to tell us the drag has finished (either a
// drag-failed or a drag-end). So we post a task to manually end the drag.
// If GTK+ does send the drag-failed or drag-end event, we cancel the task.
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(&TabGtk::EndDrag, drag_end_factory_.GetWeakPtr(), false));
return TRUE;
@@ -349,7 +349,7 @@ void TabGtk::EndDrag(bool canceled) {
// We must let gtk clean up after we handle the drag operation, otherwise
// there will be outstanding references to the drag widget when we try to
// destroy it.
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(&TabGtk::DestroyDragWidget, destroy_factory_.GetWeakPtr()));
« no previous file with comments | « chrome/browser/ui/gtk/tabs/tab_gtk.h ('k') | chrome/browser/ui/gtk/tabs/tab_strip_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698