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

Unified Diff: components/ssl_config/ssl_config_service_manager_pref_unittest.cc

Issue 2082333002: Remove calls to deprecated MessageLoop methods in components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: components/ssl_config/ssl_config_service_manager_pref_unittest.cc
diff --git a/components/ssl_config/ssl_config_service_manager_pref_unittest.cc b/components/ssl_config/ssl_config_service_manager_pref_unittest.cc
index 07aaef88f48dbed2b72f3e8318ce3ea3400e32f3..b5303f28e722e4ec347d6165c5d59fe2c9825be6 100644
--- a/components/ssl_config/ssl_config_service_manager_pref_unittest.cc
+++ b/components/ssl_config/ssl_config_service_manager_pref_unittest.cc
@@ -7,6 +7,7 @@
#include "base/memory/ref_counted.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "base/threading/thread_task_runner_handle.h"
#include "base/values.h"
#include "components/prefs/testing_pref_service.h"
@@ -71,7 +72,7 @@ TEST_F(SSLConfigServiceManagerPrefTest, GoodDisabledCipherSuites) {
// Pump the message loop to notify the SSLConfigServiceManagerPref that the
// preferences changed.
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
SSLConfig config;
config_service->GetSSLConfig(&config);
@@ -109,7 +110,7 @@ TEST_F(SSLConfigServiceManagerPrefTest, BadDisabledCipherSuites) {
// Pump the message loop to notify the SSLConfigServiceManagerPref that the
// preferences changed.
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
SSLConfig config;
config_service->GetSSLConfig(&config);

Powered by Google App Engine
This is Rietveld 408576698