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

Unified Diff: chrome/browser/browsing_data/browsing_data_remover_unittest.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/browsing_data/browsing_data_remover_unittest.cc
diff --git a/chrome/browser/browsing_data/browsing_data_remover_unittest.cc b/chrome/browser/browsing_data/browsing_data_remover_unittest.cc
index 7e0053acba8773b929ab543671277fbc36f4cc8d..c15bebfc4f50b8f6dfb1bf64000f8b31502fefe7 100644
--- a/chrome/browser/browsing_data/browsing_data_remover_unittest.cc
+++ b/chrome/browser/browsing_data/browsing_data_remover_unittest.cc
@@ -128,7 +128,7 @@ class AwaitCompletionHelper : public BrowsingDataRemover::Observer {
if (!already_quit_) {
DCHECK(!start_);
start_ = true;
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
} else {
DCHECK(!start_);
already_quit_ = false;
@@ -138,7 +138,7 @@ class AwaitCompletionHelper : public BrowsingDataRemover::Observer {
void Notify() {
if (start_) {
DCHECK(!already_quit_);
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
start_ = false;
} else {
DCHECK(!already_quit_);
@@ -235,7 +235,7 @@ class RemoveSafeBrowsingCookieTester : public RemoveCookieTester {
SafeBrowsingService::CreateSafeBrowsingService();
browser_process_->SetSafeBrowsingService(sb_service);
sb_service->Initialize();
- MessageLoop::current()->RunUntilIdle();
+ base::MessageLoop::current()->RunUntilIdle();
// Create a cookiemonster that does not have persistant storage, and replace
// the SafeBrowsingService created one with it.
@@ -247,7 +247,7 @@ class RemoveSafeBrowsingCookieTester : public RemoveCookieTester {
virtual ~RemoveSafeBrowsingCookieTester() {
browser_process_->safe_browsing_service()->ShutDown();
- MessageLoop::current()->RunUntilIdle();
+ base::MessageLoop::current()->RunUntilIdle();
browser_process_->SetSafeBrowsingService(NULL);
}
@@ -408,7 +408,7 @@ class RemoveAutofillTester : public autofill::PersonalDataManagerObserver {
std::vector<autofill::AutofillProfile> profiles;
profiles.push_back(profile);
personal_data_manager_->SetProfiles(&profiles);
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
autofill::CreditCard card;
card.SetRawInfo(autofill::CREDIT_CARD_NUMBER,
@@ -417,12 +417,12 @@ class RemoveAutofillTester : public autofill::PersonalDataManagerObserver {
std::vector<autofill::CreditCard> cards;
cards.push_back(card);
personal_data_manager_->SetCreditCards(&cards);
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
}
private:
virtual void OnPersonalDataChanged() OVERRIDE {
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
}
autofill::PersonalDataManager* personal_data_manager_;
@@ -614,7 +614,7 @@ class BrowsingDataRemoverTest : public testing::Test,
// message_loop_, as well as all the threads associated with it must be
// defined before profile_ to prevent explosions. Oh how I love C++.
- MessageLoopForUI message_loop_;
+ base::MessageLoopForUI message_loop_;
content::TestBrowserThread ui_thread_;
content::TestBrowserThread db_thread_;
content::TestBrowserThread webkit_thread_;

Powered by Google App Engine
This is Rietveld 408576698