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

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: 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/extensions/extension_browsertest.cc
diff --git a/chrome/browser/extensions/extension_browsertest.cc b/chrome/browser/extensions/extension_browsertest.cc
index a6da517bbf1a2e94ffad2605f97bed95eed18b2b..d40574271450a08410f16bf18b3bb00445dd9af0 100644
--- a/chrome/browser/extensions/extension_browsertest.cc
+++ b/chrome/browser/extensions/extension_browsertest.cc
@@ -307,7 +307,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,
@@ -664,7 +664,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:
@@ -678,29 +678,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: {
@@ -711,7 +711,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;
}
@@ -725,14 +725,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:

Powered by Google App Engine
This is Rietveld 408576698