summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/gtk/tabs/tab_gtk.cc
diff options
context:
space:
mode:
authorxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-08 22:02:11 +0000
committerxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-08 22:02:11 +0000
commit3264d16a00887b248d4828dbf136b3d8db8381a6 (patch)
treef15695d5ddeba58bec42e03c84a64ed0b33392a2 /chrome/browser/ui/gtk/tabs/tab_gtk.cc
parent14bd554b95adc002247427614aeb70c213132282 (diff)
downloadchromium_src-3264d16a00887b248d4828dbf136b3d8db8381a6.zip
chromium_src-3264d16a00887b248d4828dbf136b3d8db8381a6.tar.gz
chromium_src-3264d16a00887b248d4828dbf136b3d8db8381a6.tar.bz2
chrome: Use base::MessageLoop. (Part 2)
This CL updates chrome/browser/ui/* BUG=236029 Review URL: https://chromiumcodereview.appspot.com/14307023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199024 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/gtk/tabs/tab_gtk.cc')
-rw-r--r--chrome/browser/ui/gtk/tabs/tab_gtk.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/ui/gtk/tabs/tab_gtk.cc b/chrome/browser/ui/gtk/tabs/tab_gtk.cc
index c145ff2..94eae7c 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()));