| Index: chrome/browser/sync/test/integration/autofill_helper.cc
|
| diff --git a/chrome/browser/sync/test/integration/autofill_helper.cc b/chrome/browser/sync/test/integration/autofill_helper.cc
|
| index 3963ca425a6871ded8c393d743c1cecd90a3affc..eb34f0886ba5194034447051b33d32d668fd2482 100644
|
| --- a/chrome/browser/sync/test/integration/autofill_helper.cc
|
| +++ b/chrome/browser/sync/test/integration/autofill_helper.cc
|
| @@ -7,6 +7,7 @@
|
| #include <stddef.h>
|
|
|
| #include "base/guid.h"
|
| +#include "base/run_loop.h"
|
| #include "chrome/browser/autofill/personal_data_manager_factory.h"
|
| #include "chrome/browser/chrome_notification_types.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| @@ -302,7 +303,7 @@ void SetProfiles(int profile, std::vector<AutofillProfile>* autofill_profiles) {
|
| PersonalDataManager* pdm = GetPersonalDataManager(profile);
|
| pdm->AddObserver(&observer);
|
| pdm->SetProfiles(autofill_profiles);
|
| - base::MessageLoop::current()->Run();
|
| + base::RunLoop().Run();
|
| pdm->RemoveObserver(&observer);
|
| }
|
|
|
| @@ -313,7 +314,7 @@ void SetCreditCards(int profile, std::vector<CreditCard>* credit_cards) {
|
| PersonalDataManager* pdm = GetPersonalDataManager(profile);
|
| pdm->AddObserver(&observer);
|
| pdm->SetCreditCards(credit_cards);
|
| - base::MessageLoop::current()->Run();
|
| + base::RunLoop().Run();
|
| pdm->RemoveObserver(&observer);
|
| }
|
|
|
| @@ -361,7 +362,7 @@ const std::vector<AutofillProfile*>& GetAllAutoFillProfiles(
|
| PersonalDataManager* pdm = GetPersonalDataManager(profile);
|
| pdm->AddObserver(&observer);
|
| pdm->Refresh();
|
| - base::MessageLoop::current()->Run();
|
| + base::RunLoop().Run();
|
| pdm->RemoveObserver(&observer);
|
| return pdm->web_profiles();
|
| }
|
|
|