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

Unified Diff: chrome/browser/ui/views/toolbar/toolbar_view_interactive_uitest.cc

Issue 1160073004: chrome/browser/ui: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments. Created 5 years, 6 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/toolbar/toolbar_view_interactive_uitest.cc
diff --git a/chrome/browser/ui/views/toolbar/toolbar_view_interactive_uitest.cc b/chrome/browser/ui/views/toolbar/toolbar_view_interactive_uitest.cc
index 9478a756e00948ef0e1f4e602eb3c650fb4f34d8..a7d7deb2d856dc29a9ef9d42d82c2bfaa034e37e 100644
--- a/chrome/browser/ui/views/toolbar/toolbar_view_interactive_uitest.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_view_interactive_uitest.cc
@@ -2,7 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/location.h"
#include "base/run_loop.h"
+#include "base/single_thread_task_runner.h"
#include "chrome/browser/extensions/extension_browsertest.h"
#include "chrome/browser/ui/toolbar/toolbar_actions_bar.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
@@ -98,11 +100,9 @@ void ToolbarViewInteractiveUITest::DoDragAndDrop(const gfx::Point& start,
dnd_thread_->Start();
}
- dnd_thread_->message_loop()->PostDelayedTask(
- FROM_HERE,
- base::Bind(base::IgnoreResult(&ui_controls::SendMouseMove),
- end.x(),
- end.y()),
+ dnd_thread_->task_runner()->PostDelayedTask(
+ FROM_HERE, base::Bind(base::IgnoreResult(&ui_controls::SendMouseMove),
+ end.x(), end.y()),
base::TimeDelta::FromMilliseconds(200));
runner->Run();
}
« no previous file with comments | « chrome/browser/ui/views/toolbar/toolbar_button.cc ('k') | chrome/browser/ui/views/toolbar/wrench_toolbar_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698