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

Unified Diff: chrome/browser/chromeos/login/oobe_localization_browsertest.cc

Issue 2361203002: Remove calls to MessageLoop::Run/RunUntilIdle. (Closed)
Patch Set: CR jochen #6 Created 4 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/media/webrtc/native_desktop_media_list_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/oobe_localization_browsertest.cc
diff --git a/chrome/browser/chromeos/login/oobe_localization_browsertest.cc b/chrome/browser/chromeos/login/oobe_localization_browsertest.cc
index 76bcc37a361e1ca4c04016ef7f681d3db7f7ada0..ab3fad4e904797cf3294bd7cccaeb9ce89a6998c 100644
--- a/chrome/browser/chromeos/login/oobe_localization_browsertest.cc
+++ b/chrome/browser/chromeos/login/oobe_localization_browsertest.cc
@@ -6,6 +6,7 @@
#include "base/macros.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "base/strings/stringprintf.h"
#include "base/task_runner.h"
#include "base/time/time.h"
@@ -417,7 +418,7 @@ void OobeLocalizationTest::RunLocalizationTest() {
// Shut down the display host.
LoginDisplayHost::default_host()->Finalize();
- base::MessageLoopForUI::current()->RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
// Clear the locale pref so the statistics provider is pinged next time.
g_browser_process->local_state()->SetString(prefs::kApplicationLocale,
« no previous file with comments | « no previous file | chrome/browser/media/webrtc/native_desktop_media_list_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698