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

Side by Side Diff: chrome/browser/chromeos/login/test/wizard_in_process_browser_test.cc

Issue 2033753002: Remove use of deprecated MessageLoop methods in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: manual change Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/login/test/wizard_in_process_browser_test.h" 5 #include "chrome/browser/chromeos/login/test/wizard_in_process_browser_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/location.h"
8 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/single_thread_task_runner.h"
11 #include "base/threading/thread_task_runner_handle.h"
9 #include "chrome/browser/chrome_notification_types.h" 12 #include "chrome/browser/chrome_notification_types.h"
10 #include "chrome/browser/chromeos/login/login_wizard.h" 13 #include "chrome/browser/chromeos/login/login_wizard.h"
11 #include "chrome/browser/chromeos/login/ui/login_display_host.h" 14 #include "chrome/browser/chromeos/login/ui/login_display_host.h"
12 #include "chrome/browser/chromeos/login/wizard_controller.h" 15 #include "chrome/browser/chromeos/login/wizard_controller.h"
13 #include "chrome/browser/ui/browser.h" 16 #include "chrome/browser/ui/browser.h"
14 #include "chrome/common/chrome_switches.h" 17 #include "chrome/common/chrome_switches.h"
15 #include "chromeos/chromeos_switches.h" 18 #include "chromeos/chromeos_switches.h"
16 #include "content/public/browser/notification_service.h" 19 #include "content/public/browser/notification_service.h"
17 20
18 namespace chromeos { 21 namespace chromeos {
(...skipping 17 matching lines...) Expand all
36 void WizardInProcessBrowserTest::SetUpOnMainThread() { 39 void WizardInProcessBrowserTest::SetUpOnMainThread() {
37 SetUpWizard(); 40 SetUpWizard();
38 if (!screen_name_.empty()) { 41 if (!screen_name_.empty()) {
39 ShowLoginWizard(screen_name_); 42 ShowLoginWizard(screen_name_);
40 host_ = LoginDisplayHost::default_host(); 43 host_ = LoginDisplayHost::default_host();
41 } 44 }
42 } 45 }
43 46
44 void WizardInProcessBrowserTest::TearDownOnMainThread() { 47 void WizardInProcessBrowserTest::TearDownOnMainThread() {
45 // LoginDisplayHost owns controllers and all windows. 48 // LoginDisplayHost owns controllers and all windows.
46 base::MessageLoopForUI::current()->DeleteSoon(FROM_HERE, host_); 49 base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, host_);
47 50
48 base::MessageLoopForUI::current()->RunUntilIdle(); 51 base::MessageLoopForUI::current()->RunUntilIdle();
49 } 52 }
50 53
51 } // namespace chromeos 54 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698