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

Unified Diff: chrome/browser/ui/gtk/download/download_shelf_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/download/download_shelf_gtk.cc
diff --git a/chrome/browser/ui/gtk/download/download_shelf_gtk.cc b/chrome/browser/ui/gtk/download/download_shelf_gtk.cc
index 636b0e3fd1b1e74dc5017e4a1c762d19844096ce..d709c76d56e3aabda1435b233696fdd99a8ae1f3 100644
--- a/chrome/browser/ui/gtk/download/download_shelf_gtk.cc
+++ b/chrome/browser/ui/gtk/download/download_shelf_gtk.cc
@@ -339,9 +339,9 @@ void DownloadShelfGtk::SetCloseOnMouseOut(bool close) {
close_on_mouse_out_ = close;
mouse_in_shelf_ = close;
if (close)
- MessageLoopForUI::current()->AddObserver(this);
+ base::MessageLoopForUI::current()->AddObserver(this);
else
- MessageLoopForUI::current()->RemoveObserver(this);
+ base::MessageLoopForUI::current()->RemoveObserver(this);
}
void DownloadShelfGtk::WillProcessEvent(GdkEvent* event) {
@@ -394,10 +394,10 @@ bool DownloadShelfGtk::IsCursorInShelfZone(
void DownloadShelfGtk::MouseLeftShelf() {
DCHECK(close_on_mouse_out_);
- MessageLoop::current()->PostDelayedTask(
+ base::MessageLoop::current()->PostDelayedTask(
FROM_HERE,
- base::Bind(&DownloadShelfGtk::Close, weak_factory_.GetWeakPtr(),
- AUTOMATIC),
+ base::Bind(
+ &DownloadShelfGtk::Close, weak_factory_.GetWeakPtr(), AUTOMATIC),
base::TimeDelta::FromMilliseconds(kAutoCloseDelayMs));
}
« no previous file with comments | « chrome/browser/ui/gtk/download/download_shelf_gtk.h ('k') | chrome/browser/ui/gtk/download/download_started_animation_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698