summaryrefslogtreecommitdiffstats
path: root/win8/metro_driver/chrome_app_view.cc
diff options
context:
space:
mode:
authorxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-04 14:28:28 +0000
committerxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-04 14:28:28 +0000
commita3b041c9461bafc70e1b5de429a40fb6a6bc300b (patch)
treefc3884b6768e4f875e2018217207bde834415b4f /win8/metro_driver/chrome_app_view.cc
parent2e8f4677c5a2885ba9af9c322827c5a487b7ad60 (diff)
downloadchromium_src-a3b041c9461bafc70e1b5de429a40fb6a6bc300b.zip
chromium_src-a3b041c9461bafc70e1b5de429a40fb6a6bc300b.tar.gz
chromium_src-a3b041c9461bafc70e1b5de429a40fb6a6bc300b.tar.bz2
win8: Use base::MessageLoop.
BUG=236029 R=ananta@chromium.org Review URL: https://chromiumcodereview.appspot.com/14520027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198323 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'win8/metro_driver/chrome_app_view.cc')
-rw-r--r--win8/metro_driver/chrome_app_view.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/win8/metro_driver/chrome_app_view.cc b/win8/metro_driver/chrome_app_view.cc
index ef2baf7..15c48d6 100644
--- a/win8/metro_driver/chrome_app_view.cc
+++ b/win8/metro_driver/chrome_app_view.cc
@@ -753,7 +753,7 @@ ChromeAppView::Load(HSTRING entryPoint) {
void RunMessageLoop(winui::Core::ICoreDispatcher* dispatcher) {
// We're entering a nested message loop, let's allow dispatching
// tasks while we're in there.
- MessageLoop::current()->SetNestableTasksAllowed(true);
+ base::MessageLoop::current()->SetNestableTasksAllowed(true);
// Enter main core message loop. There are several ways to exit it
// Nicely:
@@ -765,7 +765,7 @@ void RunMessageLoop(winui::Core::ICoreDispatcher* dispatcher) {
::CoreProcessEventsOption_ProcessUntilQuit);
// Wind down the thread's chrome message loop.
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
}
void ChromeAppView::CheckForOSKActivation() {
@@ -798,10 +798,9 @@ void ChromeAppView::CheckForOSKActivation() {
}
}
}
- MessageLoop::current()->PostDelayedTask(
+ base::MessageLoop::current()->PostDelayedTask(
FROM_HERE,
- base::Bind(&ChromeAppView::CheckForOSKActivation,
- base::Unretained(this)),
+ base::Bind(&ChromeAppView::CheckForOSKActivation, base::Unretained(this)),
base::TimeDelta::FromMilliseconds(kCheckOSKDelayMs));
}
@@ -820,7 +819,7 @@ ChromeAppView::Run() {
}
// Create a message loop to allow message passing into this thread.
- MessageLoop msg_loop(MessageLoop::TYPE_UI);
+ base::MessageLoop msg_loop(base::MessageLoop::TYPE_UI);
// Announce our message loop to the world.
globals.appview_msg_loop = msg_loop.message_loop_proxy();