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

Unified Diff: chrome/renderer/autofill/form_autofill_browsertest.cc

Issue 2083363002: Remove calls to deprecated MessageLoop methods in chrome. (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: chrome/renderer/autofill/form_autofill_browsertest.cc
diff --git a/chrome/renderer/autofill/form_autofill_browsertest.cc b/chrome/renderer/autofill/form_autofill_browsertest.cc
index 7ae881f2c15853c002f71e0e01582f3f9b13327f..4ea54a0a719a9b1aeb1697fcada02cd423409d0f 100644
--- a/chrome/renderer/autofill/form_autofill_browsertest.cc
+++ b/chrome/renderer/autofill/form_autofill_browsertest.cc
@@ -8,6 +8,7 @@
#include "base/format_macros.h"
#include "base/macros.h"
+#include "base/run_loop.h"
#include "base/strings/string16.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
@@ -2471,7 +2472,7 @@ TEST_F(FormAutofillTest, OnlyExtractNewForms) {
"newInput.setAttribute('id', 'telephone');"
"newInput.value = '12345';"
"document.getElementById('testform').appendChild(newInput);");
- msg_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
forms = form_cache.ExtractNewForms();
ASSERT_EQ(1U, forms.size());
@@ -2527,7 +2528,7 @@ TEST_F(FormAutofillTest, OnlyExtractNewForms) {
"newForm.appendChild(newLastname);"
"newForm.appendChild(newEmail);"
"document.body.appendChild(newForm);");
- msg_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
web_frame = GetMainFrame();
forms = form_cache.ExtractNewForms();

Powered by Google App Engine
This is Rietveld 408576698