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

Unified Diff: chrome/browser/sync/test/integration/autofill_helper.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/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();
}

Powered by Google App Engine
This is Rietveld 408576698