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

Unified Diff: chrome/browser/extensions/extension_browsertest.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 7 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/extensions/extension_browsertest.cc
diff --git a/chrome/browser/extensions/extension_browsertest.cc b/chrome/browser/extensions/extension_browsertest.cc
index 49a9dc9315d5ea90ad29e10fbd4aa6fe32c8ca83..658decdd03e64001277bf063d433cdbfa274fb1f 100644
--- a/chrome/browser/extensions/extension_browsertest.cc
+++ b/chrome/browser/extensions/extension_browsertest.cc
@@ -306,7 +306,7 @@ class MockAbortExtensionInstallPrompt : public ExtensionInstallPrompt {
const Extension* extension,
const ShowDialogCallback& show_dialog_callback) OVERRIDE {
delegate->InstallUIAbort(true);
- MessageLoopForUI::current()->Quit();
+ base::MessageLoopForUI::current()->Quit();
}
virtual void OnInstallSuccess(const Extension* extension,
@@ -663,7 +663,7 @@ void ExtensionBrowserTest::Observe(
last_loaded_extension_id_ =
content::Details<const Extension>(details).ptr()->id();
VLOG(1) << "Got EXTENSION_LOADED notification.";
- MessageLoopForUI::current()->Quit();
+ base::MessageLoopForUI::current()->Quit();
break;
case chrome::NOTIFICATION_CRX_INSTALLER_DONE:
@@ -677,29 +677,29 @@ void ExtensionBrowserTest::Observe(
last_loaded_extension_id_ = "";
}
++crx_installers_done_observed_;
- MessageLoopForUI::current()->Quit();
+ base::MessageLoopForUI::current()->Quit();
break;
case chrome::NOTIFICATION_EXTENSION_INSTALLED:
VLOG(1) << "Got EXTENSION_INSTALLED notification.";
++extension_installs_observed_;
- MessageLoopForUI::current()->Quit();
+ base::MessageLoopForUI::current()->Quit();
break;
case chrome::NOTIFICATION_EXTENSION_INSTALL_ERROR:
VLOG(1) << "Got EXTENSION_INSTALL_ERROR notification.";
- MessageLoopForUI::current()->Quit();
+ base::MessageLoopForUI::current()->Quit();
break;
case chrome::NOTIFICATION_EXTENSION_PROCESS_TERMINATED:
VLOG(1) << "Got EXTENSION_PROCESS_TERMINATED notification.";
- MessageLoopForUI::current()->Quit();
+ base::MessageLoopForUI::current()->Quit();
break;
case chrome::NOTIFICATION_EXTENSION_LOAD_ERROR:
VLOG(1) << "Got EXTENSION_LOAD_ERROR notification.";
++extension_load_errors_observed_;
- MessageLoopForUI::current()->Quit();
+ base::MessageLoopForUI::current()->Quit();
break;
case chrome::NOTIFICATION_EXTENSION_PAGE_ACTION_COUNT_CHANGED: {
@@ -710,7 +710,7 @@ void ExtensionBrowserTest::Observe(
if (location_bar->PageActionCount() ==
target_page_action_count_) {
target_page_action_count_ = -1;
- MessageLoopForUI::current()->Quit();
+ base::MessageLoopForUI::current()->Quit();
}
break;
}
@@ -724,14 +724,14 @@ void ExtensionBrowserTest::Observe(
if (location_bar->PageActionVisibleCount() ==
target_visible_page_action_count_) {
target_visible_page_action_count_ = -1;
- MessageLoopForUI::current()->Quit();
+ base::MessageLoopForUI::current()->Quit();
}
break;
}
case content::NOTIFICATION_LOAD_STOP:
VLOG(1) << "Got LOAD_STOP notification.";
- MessageLoopForUI::current()->Quit();
+ base::MessageLoopForUI::current()->Quit();
break;
default:
« no previous file with comments | « chrome/browser/extensions/extension_apitest.cc ('k') | chrome/browser/extensions/extension_crash_recovery_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698