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

Unified Diff: chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.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/tabs/tab_drag_controller_interactive_uitest.cc
diff --git a/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc b/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc
index 59cb87ba003883710bac74cb7d9932b0da0eea58..c5e68f42fac187ea294c0e0ad0b7ef8c4dfde212 100644
--- a/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc
+++ b/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc
@@ -77,7 +77,7 @@ class QuitDraggingObserver : public content::NotificationObserver {
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE {
DCHECK_EQ(chrome::NOTIFICATION_TAB_DRAG_LOOP_DONE, type);
- MessageLoopForUI::current()->Quit();
+ base::MessageLoopForUI::current()->Quit();
delete this;
}
@@ -266,7 +266,7 @@ class DetachToBrowserTabDragControllerTest
if (input_source() == INPUT_SOURCE_MOUSE)
return ui_controls::SendMouseMoveNotifyWhenDone(x, y, task);
#if defined(USE_ASH) && !defined(OS_WIN) // TODO(win_ash)
- MessageLoop::current()->PostTask(FROM_HERE, task);
+ base::MessageLoop::current()->PostTask(FROM_HERE, task);
event_generator_->MoveTouch(gfx::Point(x, y));
#else
NOTREACHED();
@@ -297,7 +297,7 @@ class DetachToBrowserTabDragControllerTest
// Schedule observer to quit message loop when done dragging. This has to
// be async so the message loop can run.
test::QuitWhenNotDraggingImpl();
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
} else {
// Touch events are sync, so we know we're not in a drag session. But some
// tests rely on the browser fully closing, which is async. So, run all
@@ -1266,7 +1266,7 @@ class DetachToBrowserInSeparateDisplayAndCancelTabDragControllerTest
void QuitWhenNotDragging() {
test::QuitWhenNotDraggingImpl();
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
}
private:
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_drag_controller.cc ('k') | chrome/browser/ui/views/tabs/tab_strip_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698