| Index: components/autofill/core/browser/personal_data_manager_unittest.cc
|
| diff --git a/components/autofill/core/browser/personal_data_manager_unittest.cc b/components/autofill/core/browser/personal_data_manager_unittest.cc
|
| index 6fe25e6e15aa232c6e2e05a315d502576f1dc015..803dbad6787b0d10908d93d46379986789c9fbff 100644
|
| --- a/components/autofill/core/browser/personal_data_manager_unittest.cc
|
| +++ b/components/autofill/core/browser/personal_data_manager_unittest.cc
|
| @@ -4952,7 +4952,7 @@ TEST_F(PersonalDataManagerTest, ApplyDedupingRoutine_MultipleDedupes) {
|
| personal_data_->AddProfile(Barney);
|
| EXPECT_CALL(personal_data_observer_, OnPersonalDataChanged())
|
| .WillOnce(QuitMainMessageLoop());
|
| - base::MessageLoop::current()->Run();
|
| + base::RunLoop().Run();
|
|
|
| // Make sure the 7 profiles were saved;
|
| EXPECT_EQ(7U, personal_data_->GetProfiles().size());
|
| @@ -4969,7 +4969,7 @@ TEST_F(PersonalDataManagerTest, ApplyDedupingRoutine_MultipleDedupes) {
|
| personal_data_->ApplyDedupingRoutine();
|
| EXPECT_CALL(personal_data_observer_, OnPersonalDataChanged())
|
| .WillOnce(QuitMainMessageLoop());
|
| - base::MessageLoop::current()->Run();
|
| + base::RunLoop().Run();
|
|
|
| // Get the profiles, sorted by frecency to have a deterministic order.
|
| std::vector<AutofillProfile*> profiles =
|
| @@ -5042,7 +5042,7 @@ TEST_F(PersonalDataManagerTest, ApplyDedupingRoutine_FeatureDisabled) {
|
|
|
| EXPECT_CALL(personal_data_observer_, OnPersonalDataChanged())
|
| .WillOnce(QuitMainMessageLoop());
|
| - base::MessageLoop::current()->Run();
|
| + base::RunLoop().Run();
|
|
|
| // Make sure both profiles were saved.
|
| EXPECT_EQ(2U, personal_data_->GetProfiles().size());
|
| @@ -5073,7 +5073,7 @@ TEST_F(PersonalDataManagerTest, ApplyDedupingRoutine_OncePerVersion) {
|
| personal_data_->AddProfile(profile2);
|
| EXPECT_CALL(personal_data_observer_, OnPersonalDataChanged())
|
| .WillOnce(QuitMainMessageLoop());
|
| - base::MessageLoop::current()->Run();
|
| + base::RunLoop().Run();
|
|
|
| EXPECT_EQ(2U, personal_data_->GetProfiles().size());
|
|
|
| @@ -5085,7 +5085,7 @@ TEST_F(PersonalDataManagerTest, ApplyDedupingRoutine_OncePerVersion) {
|
| EXPECT_TRUE(personal_data_->ApplyDedupingRoutine());
|
| EXPECT_CALL(personal_data_observer_, OnPersonalDataChanged())
|
| .WillOnce(QuitMainMessageLoop());
|
| - base::MessageLoop::current()->Run();
|
| + base::RunLoop().Run();
|
|
|
| std::vector<AutofillProfile*> profiles = personal_data_->GetProfiles();
|
|
|
| @@ -5106,7 +5106,7 @@ TEST_F(PersonalDataManagerTest, ApplyDedupingRoutine_OncePerVersion) {
|
| personal_data_->AddProfile(profile3);
|
| EXPECT_CALL(personal_data_observer_, OnPersonalDataChanged())
|
| .WillOnce(QuitMainMessageLoop());
|
| - base::MessageLoop::current()->Run();
|
| + base::RunLoop().Run();
|
|
|
| // Make sure |profile3| was saved.
|
| EXPECT_EQ(2U, personal_data_->GetProfiles().size());
|
|
|